[Webkit-unassigned] [Bug 102374] [EFL, Cairo?, Freetype?] Subpixel Layout results are vertically off-by-minus-one

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Mon Nov 19 02:20:34 PST 2012


https://bugs.webkit.org/show_bug.cgi?id=102374





--- Comment #1 from Dominik Röttsches (drott) <dominik.rottsches at intel.com>  2012-11-19 02:22:30 PST ---
In 
void SimpleFontData::platformInit()

    float ascent = narrowPrecisionToFloat(font_extents.ascent);
    float descent = narrowPrecisionToFloat(font_extents.descent);
    float lineGap = narrowPrecisionToFloat(font_extents.height - font_extents.ascent - font_extents.descent);

lineGap results in -1. That seems wrong, since the cairo documentation days:

"double height;

the recommended vertical distance between baselines when setting consecutive lines of text with the font. This is greater than ascent+descent by a quantity known as the line spacing or external leading. When space is at a premium, most fonts can be set with only a distance of ascent+descent between lines."

-- 
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.


More information about the webkit-unassigned mailing list