After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 167801 - Unhinted rendering regression: incorrect character widths
Unhinted rendering regression: incorrect character widths
Status: RESOLVED FIXED
Product: pango
Classification: Platform
Component: general
1.8.x
Other All
: Normal trivial
: ---
Assigned To: pango-maint
pango-maint
: 169306 (view as bug list)
Depends on:
Blocks:
 
 
Reported: 2005-02-18 13:43 UTC by Adam Sampson
Modified: 2005-03-05 19:20 UTC
See Also:
GNOME target: ---
GNOME version: 2.7/2.8


Attachments
Before-and-after images -- look at "Hit" and "Lullaby". (74.04 KB, image/png)
2005-02-18 13:44 UTC, Adam Sampson
Details

Description Adam Sampson 2005-02-18 13:43:45 UTC
Please describe the problem:
While looking at some old screenshots, I was struck by how much better unhinted
Bitstream Vera Sans used to look back when I was using pango 1.6. A bit of
investigation (well, OK, a lot of investigation) tracked the change down to
version 1.54 of pango/pangoxft-font.c in GNOME CVS.

Steps to reproduce:
0. With a 72dpi display, set your font to Bitstream Vera Sans 13, and disable
hinting (but leave antialiasing turned on).
1. Compile a version of pango where pango/pangoxft-font.c is version 1.53 or
earlier (e.g. pango 1.6.0).
2. Get a GTK app to display the string "Amy Hit Mrs. Potter's Lullaby" (or, more
generally, the track listing of Counting Crows' "This Desert Life"), and look at
the nice even spacing around "i"s and "l"s with xmag.
3. Compile a version of pango where pango/pangoxft-font.c is version 1.54 or
later (e.g. pango 1.7.0).
4. Repeat step 2, and note that some of the "i"s and "l"s have one pixel's space
too few on their right-hand side.


Actual results:
Bitstream Vera Sans looks pretty nasty. (See attached screenshot.)


Expected results:
I'd expect the rendering to be the same as it was in 1.6.0.

Does this happen every time?
Yes.

Other information:
The change that caused the regression was the fix for bug 152529, which altered
how character metrics were calculated for unhinted rendering.
Comment 1 Adam Sampson 2005-02-18 13:44:57 UTC
Created attachment 37639 [details]
Before-and-after images -- look at "Hit" and "Lullaby".
Comment 2 Owen Taylor 2005-03-02 22:59:28 UTC
2005-03-02  Owen Taylor  <otaylor@redhat.com>

        * pango/pangoxft-font.c (pango_xft_font_get_glyph_extents):
        Go back to using Xft-reported metrics for all non-transformed
        fonts. Reporting non-integer glyph metrics for fonts
        where people have disabled hinting in their config causes
        various problems. (reported variously, including #167801,
        Adam Sampson)

Comment 3 Owen Taylor 2005-03-05 19:20:08 UTC
*** Bug 169306 has been marked as a duplicate of this bug. ***