[cairo-bugs] [Bug 20255] cairo_scaled_font_glyph_extents breaks with invalid glyph id

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Sun May 24 08:00:27 PDT 2009


http://bugs.freedesktop.org/show_bug.cgi?id=20255





--- Comment #3 from Elmar Braun <elmar.braun at sh-p.de>  2009-05-24 08:00:23 PST ---
Created an attachment (id=26170)
 --> (http://bugs.freedesktop.org/attachment.cgi?id=26170)
Patch to remove broken error handling

Adrian's commit doesn't solve the problem.

The problem is overzealous error checking introduced in commit
47824dee31acdaf5ad6488dd2714e9f28c936aa2. The problem can be fixed by removing
it (see patch).

GetGlyphOutlineW returns GDI_ERROR when called with a glyph id that doesn't
exist in the font. In Cairo 1.6 _cairo_win32_scaled_font_init_glyph_metrics
would memset the glyph metrics to 0 and then return CAIRO_STATUS_SUCCESS. In
1.8 it returns an error, which renders the scaled font permanently unusable.


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


More information about the cairo-bugs mailing list