Bug 16242 - Printing FT fonts on Win32 printing surface incorrectly fall back to image sometimes
Summary: Printing FT fonts on Win32 printing surface incorrectly fall back to image so...
Status: RESOLVED FIXED
Alias: None
Product: cairo
Classification: Unclassified
Component: win32 backend (show other bugs)
Version: 1.6.5
Hardware: All Windows (All)
: medium normal
Assignee: cairo-bugs mailing list
QA Contact: cairo-bugs mailing list
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-06-05 18:32 UTC by bounin
Modified: 2008-06-06 16:30 UTC (History)
0 users

See Also:
i915 platform:
i915 features:


Attachments

Description bounin 2008-06-05 18:32:50 UTC
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


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.