bugThe FreeType Project - Bugs: bug #34507, Distorted fonts after 2.4.4 to...


bug #34507: Distorted fonts after 2.4.4 to 2.4.6 upgrade

Submitted by:  Marek Kozłowski <guayasil>
Submitted on:  Sat 08 Oct 2011 05:04:03 PM UTC  
Severity:  3 - Normal Item Group:  Incorrect behaviour
Status:  Duplicate Privacy:  Public
Assigned to:  Werner LEMBERG <wl> Open/Closed:  Closed
Planned Release:  None

Add a New Comment(Rich Markup)

You are not logged in

Please log in, so followups can be emailed to you.


Mon 10 Oct 2011 06:32:05 AM UTC, comment #3:

Essentially, it's the same problem. Version 2.4.6 has added this important line (file truetype/ttdriver.c, at the end of function tt_size_request) which was missing in previous versions:

ttsize->root.metrics = ttsize->metrics;

This copies the freshly calculated TrueType metrics into the root structure. For example, if you debug `ftdiff -r 120 verdana.ttf', you get

(gdb) p *metrics
$8 = {
x_ppem = 27,
y_ppem = 27,
x_scale = 54624,
y_scale = 54624,
ascender = 1728,
descender = -384,
height = 2048,
max_advance = 2624

with version 2.4.4, and

(gdb) p *metrics
$8 = {
x_ppem = 27,
y_ppem = 27,
x_scale = 55296,
y_scale = 55296,
ascender = 1728,
descender = -384,
height = 2112,
max_advance = 2624

with 2.4.6; without the copying, the specially computed TrueType values are not properly propagated to the top-level. In particular, the TrueType specification asks for rounding of (some) metrics values, while FreeType by default uses flooring and ceiling.

Werner LEMBERG <wl>
Project AdministratorIn charge of this item.
Sun 09 Oct 2011 06:00:50 PM UTC, comment #2:

But those bug reports concern monospace and dejavu fonts. I experience it with other fonts including, for example, Verdana (used on attached pictures)...
BTW: my desktop is XFCE, I'm using custom resolution of 120 DPI.

Marek Kozłowski <guayasil>
Sat 08 Oct 2011 09:43:44 PM UTC, comment #1:

Please read bug reports #33939 and #34156; I'm quite sure that one of the two problems is affecting you.

Werner LEMBERG <wl>
Project AdministratorIn charge of this item.
Sat 08 Oct 2011 05:04:03 PM UTC, original submission:

An excerpt from my config:

<match target="font" >
<edit mode="assign" name="rgba" <const>rgb</const</edit>
<edit mode="assign" name="hinting" ><bool>true</bool></edit>
<edit mode="assign" name="autohint" ><bool>false</bool></edit>
<edit mode="assign" name="antialias" ><bool>true</bool></edit>
<edit mode="assign" name="hintstyle" ><const>hintslight</const></edit>
<edit name="lcdfilter" mode="assign"><const>lcddefault</const></edit>

I described the bug in Arch bugzilla although the same bug persists under Gentoo:


Especially you can compare the screenshots attached to that bug report:



Wrong proportion lead to some deformation of the fonts.

Marek Kozłowski <guayasil>


(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:

No files currently attached


Depends on the following items: None found

Items that depend on this one: None found


Carbon-Copy List
  • -email is unavailable- added by wl (Posted a comment)
  • -email is unavailable- added by guayasil (Submitted the item)

    Do you think this task is very important?
    If so, you can add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.




    Follow 4 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2011-10-10 wl StatusNeed Info => Duplicate
        Open/ClosedOpen => Closed
    2011-10-08 wl StatusNone => Need Info
        Assigned toNone => wl

    Back to the top

    Powered by Savane 3.3