Bug 37395 - DejaVuSans glyphs broken using Freetype FT_Render_Glyph with specified width
Summary: DejaVuSans glyphs broken using Freetype FT_Render_Glyph with specified width
Status: RESOLVED FIXED
Alias: None
Product: DejaVu
Classification: Unclassified
Component: Sans (show other bugs)
Version: unspecified
Hardware: All All
: medium normal
Assignee: Deja Vu bugs
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-05-19 23:58 UTC by Mark
Modified: 2011-11-06 12:54 UTC (History)
0 users

See Also:
i915 platform:
i915 features:


Attachments
Packaged files demonstrating problem (101.74 KB, application/x-zip-compressed)
2011-05-19 23:58 UTC, Mark
Details

Description Mark 2011-05-19 23:58:20 UTC
Created attachment 46932 [details]
Packaged files demonstrating problem

This bug was originally posted to the FreeType project bug report ( https://savannah.nongnu.org/bugs/?33288 )

Attached is a test application (main.cpp) that demonstrates the problem. 

It tries to render a "2". But the middle curve is reversed when using: FT_LOAD_TARGET_NORMAL, FT_RENDER_MODE_NORMAL
 
See attached text file: freetest.txt (unix line feeds )
freetest_crlf.txt (win32 line feeds )

(See example: http://esoteric.clanlib.org/~rombust/sub_on.png )

A reply was:

[tested with DejaVuSans 2.32] 

I'm quite sure this is a bug in the font itself. 

If you debug glyph `two' with different xres and yres, you can see many artefacts. For example, at (x-ppem,y-ppem) = (50,44), the diagonal stroke gets distorted to the right, and at (54,44), the spike to the left is eight times larger than at (55,44), which is what your original settings are equivalent.
 
I've attached images which demonstrate it.
Comment 1 Ben Laenen 2011-11-06 12:54:53 UTC
I've slightly changed the hinting of "2" to fix this (even though I'm never keen to change these important glyphs in fear of breaking something bad).

You can test it by compiling the font in SVN or by waiting for the next snapshot at https://bugs.freedesktop.org/show_bug.cgi?id=37395


Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.