Public bug reported:

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.

** Affects: emacs23 (Ubuntu)
     Importance: Undecided
         Status: New

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/931849

Title:
  Fonts in emacs look different than in gedit or gnome-terminal

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/emacs23/+bug/931849/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to