desktop-packages team mailing list archive
-
desktop-packages team
-
Mailing list archive
-
Message #85045
[Bug 931849] Re: Fonts in emacs look different than in gedit or gnome-terminal
Status changed to 'Confirmed' because the bug affects multiple users.
** Changed in: emacs23 (Ubuntu)
Status: New => Confirmed
--
You received this bug notification because you are a member of Desktop
Packages, which is subscribed to emacs23 in Ubuntu.
https://bugs.launchpad.net/bugs/931849
Title:
Fonts in emacs look different than in gedit or gnome-terminal
Status in emacs23 package in Ubuntu:
Confirmed
Bug description:
The same scalable font looks different in emacs than in gedit or
gnome-terminal.
Attached are screenshots of 1) gedit with the Monospace 8 font and 2)
emacs with the same font. Although each glyph rendering is nearly
identical (you can zoom in with gimp), the emacs character spacing is
wider (more space between glyphs).
When gedit renders text, the font size is scaled to the font library's
dpi (the scaling is done by the pango library). Xft is typically set
to 96 dpi resulting in a 1.3333 scale factor; so a font size of 8
becomes 10.666667.
Although a similiar scaling approach is employed by emacs, because the
emacs font driver interface (which emacs uses to abstract the platform
for rendering text) defines an *integer* pixelsize parameter, the same
font size of 8 becomes 11 (emacs rounds the font size up). This
accounts for the slightly exaggerated glyph spacing.
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/emacs23/+bug/931849/+subscriptions