[cairo-bugs] [Bug 16242] New: Printing FT fonts on Win32 printing surface incorrectly fall back to image sometimes

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Thu Jun 5 18:32:52 PDT 2008


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

           Summary: Printing FT fonts on Win32 printing surface incorrectly
                    fall back to image sometimes
           Product: cairo
           Version: 1.6.5
          Platform: All
        OS/Version: Windows (All)
            Status: NEW
          Severity: normal
          Priority: medium
         Component: win32 backend
        AssignedTo: cairo-bugs at cairographics.org
        ReportedBy: bounin at gmail.com
         QAContact: cairo-bugs at cairographics.org


in _cairo_win32_printing_surface_show_glyphs() function when checking scaled
font for bitmap if font type is not CAIRO_FONT_TYPE_WIN32 the result is
unpredictable resulting(as reading behind the structure end) and image
fall-back in half the cases.

Should change 
  if (_cairo_win32_scaled_font_is_bitmap (scaled_font))
for
  if (cairo_scaled_font_get_type (scaled_font) == CAIRO_FONT_TYPE_WIN32 &&
                _cairo_win32_scaled_font_is_bitmap (scaled_font) )


Thanks


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