Bug 37395

Summary: DejaVuSans glyphs broken using Freetype FT_Render_Glyph with specified width
Product: DejaVu Reporter: Mark <rombust>
Component: SansAssignee: Deja Vu bugs <dejavu-bugs>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: medium    
Version: unspecified   
Hardware: All   
OS: All   
Whiteboard:
i915 platform: i915 features:
Attachments: Packaged files demonstrating problem

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.