Bug 4106 - cairo_surface_create_similar may lose font_options
Summary: cairo_surface_create_similar may lose font_options
Status: RESOLVED FIXED
Alias: None
Product: cairo
Classification: Unclassified
Component: xlib backend (show other bugs)
Version: 0.9.3
Hardware: x86 (IA32) Linux (All)
: high normal
Assignee: Carl Worth
QA Contact: cairo-bugs mailing list
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-08-15 17:20 UTC by Behdad Esfahbod
Modified: 2007-01-29 13:14 UTC (History)
1 user (show)

See Also:
i915 platform:
i915 features:


Attachments

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.