Bug 16242

Summary: Printing FT fonts on Win32 printing surface incorrectly fall back to image sometimes
Product: cairo Reporter: bounin
Component: win32 backendAssignee: cairo-bugs mailing list <cairo-bugs>
Status: RESOLVED FIXED QA Contact: cairo-bugs mailing list <cairo-bugs>
Severity: normal    
Priority: medium    
Version: 1.6.5   
Hardware: All   
OS: Windows (All)   
Whiteboard:
i915 platform: i915 features:

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.