The FreeType Project - Bugs: bug #34507, Distorted fonts after 2.4.4 to...
You are not allowed to post comments on this tracker with your current authentication level.
bug #34507: Distorted fonts after 2.4.4 to 2.4.6 upgrade
Submitter: | Marek Kozłowski <guayasil> | ||
Submitted: | Sat 08 Oct 2011 05:04:03 PM UTC | ||
Severity: | 3 - Normal | Item Group: | Incorrect behaviour |
Status: | Duplicate | Privacy: | Public |
Assigned to: | wl | Open/Closed: | Closed |
Planned Release: | None |
Mon 10 Oct 2011 06:32:05 AM UTC, comment #3: |
Werner LEMBERG <wl> |
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)...
|
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> |
Sat 08 Oct 2011 05:04:03 PM UTC, original submission:
An excerpt from my config:
|
Marek Kozłowski <guayasil> |
No files currently attached
Depends on the following items: None found
Items that depend on this one: None found
There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.
Follow 4 latest changes.
Date | Changed by | Updated Field | Previous Value | => | Replaced by |
---|---|---|---|---|---|
2011-10-10 | wl | Status | Need Info | Duplicate | |
Open/Closed | Open | Closed | |||
2011-10-08 | wl | Status | None | Need Info | |
Assigned to | None | wl |
Powered by Savane 3.13-bb6a.
Corresponding source code
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.