Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 339572 - Rendering regression in media-libs/freetype-2.4.2
Summary: Rendering regression in media-libs/freetype-2.4.2
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo Fonts Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-10-03 10:55 UTC by Giacomo Perale
Modified: 2010-10-04 00:29 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
Screenshot of the rendering error. (freetype-2.4.2-rendering-error.png,9.42 KB, image/png)
2010-10-03 10:57 UTC, Giacomo Perale
Details
freetype-2.4.2-fix-spline-flattening.patch (freetype-2.4.2-fix-spline-flattening.patch,10.11 KB, patch)
2010-10-03 10:59 UTC, Giacomo Perale
Details | Diff
freetype-2.4.2-fixed.png (freetype-2.4.2-fixed.png,12.18 KB, image/png)
2010-10-03 11:06 UTC, Giacomo Perale
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Giacomo Perale 2010-10-03 10:55:49 UTC
An improved algorithm for flattening splines (commit http://git.savannah.gnu.org/cgit/freetype/freetype2.git/commit/?id=7fb3ef64a24489189113f693696eaf935f500c3f) first released in freetype 2.4.0 causes serious rendering issues with the 'S' character in a number of fonts, including Helvetica, Calluna and Tallys.

The bug was reported to the freetype-devel mailing list in August and fixed in git a few weeks ago, so the fix will be in the next release, freetype 2.4.3, which is not yet scheduled. Maverick is the first Ubuntu release affected by this bug and should include the fix in its freetype 2.4.2 package.

You can find an example of the problem in the pdf documents attached to this email: http://article.gmane.org/gmane.comp.fonts.freetype.devel/6809

The fix is in commit http://git.savannah.gnu.org/cgit/freetype/freetype2.git/commit/?id=e0a9a93330d3057ddf532205709ba4e1423b2557 with another typo corrected in the following commit http://git.savannah.gnu.org/cgit/freetype/freetype2.git/commit/?id=0e6fc09134c0c39016f681802918b92db2ab2155

I'll attach to this bug report a PNG screenshot and a patch including both fixes.
Comment 1 Giacomo Perale 2010-10-03 10:57:44 UTC
Created attachment 249417 [details]
Screenshot of the rendering error.

Please ignore the mentions of Ubuntu, I recycled the text of the bug report I just did in launchpad.
Comment 2 Giacomo Perale 2010-10-03 10:59:13 UTC
Created attachment 249418 [details, diff]
freetype-2.4.2-fix-spline-flattening.patch

This patch includes both fixes from freetype git.
Comment 3 Giacomo Perale 2010-10-03 11:06:52 UTC
Created attachment 249420 [details]
freetype-2.4.2-fixed.png

This is a screenshot of the same text after the fix. Notice that the curves of the 'S' are not composed by segments anymore.
Comment 4 Ryan Hill (RETIRED) gentoo-dev 2010-10-04 00:17:39 UTC
Yes, I've been following this and 2.4.3 was released today.
Comment 5 Ryan Hill (RETIRED) gentoo-dev 2010-10-04 00:29:02 UTC
and is now in the tree.  I'll try to fasttrack it into stable.