Bug 4106

Summary: cairo_surface_create_similar may lose font_options
Product: cairo Reporter: Behdad Esfahbod <freedesktop>
Component: xlib backendAssignee: Carl Worth <cworth>
Status: RESOLVED FIXED QA Contact: cairo-bugs mailing list <cairo-bugs>
Severity: normal    
Priority: high CC: jwatt
Version: 0.9.3   
Hardware: x86 (IA32)   
OS: Linux (All)   
Whiteboard:
i915 platform: i915 features:

Description Behdad Esfahbod 2005-08-15 17:20:52 UTC
In the xlib-specific code for cairo_surface_create_similar, there is a code path
that simply returns a newly created image surface.  This means the newly created
surface loses default font options of the screen.

In the generic code for create_similar too, if the backend doesn't support
creating similar, an image surface is created.  Again, the default font options
of the surface will be lost.

A solution may be to have an options font_options in image surfaces that would
be set in this situations.  It may make sense to have somthing like
cairo_image_surface_set_default_font_options () then.
Comment 1 Carl Worth 2005-08-22 17:15:21 UTC
Move bugs against "cvs" version to "0.9.3" so we can remove the "cvs" version.
Comment 2 Behdad Esfahbod 2007-01-29 13:14:52 UTC
Ok, I've fixed this already.

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.