[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 06:52:30 PST 2012


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





--- Comment #2 from Dominik Röttsches (drott) <dominik.rottsches at intel.com>  2012-11-19 06:54:27 PST ---
This is originally caused by freetype rounding when "GRID_FIT_METRICS" is on:

#ifdef GRID_FIT_METRICS
    metrics->ascender    = FT_PIX_CEIL( FT_MulFix( face->ascender,
                                                   metrics->y_scale ) );

    metrics->descender   = FT_PIX_FLOOR( FT_MulFix( face->descender,
                                                    metrics->y_scale ) );

    metrics->height      = FT_PIX_ROUND( FT_MulFix( face->height,
                                                    metrics->y_scale ) );

    metrics->max_advance = FT_PIX_ROUND( FT_MulFix( face->max_advance_width,
                                                    metrics->x_scale ) );
#else /* !GRID_FIT_METRICS */

Here, the CEIL + FLOOR of ascender and descender results in a non-uniform scaling - making the sum of ascender and descender larger than the height :-/

-- 
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