Bug 22199

Summary: Scaled font faces cannot be used after another call to select_font_face on quartz
Product: cairo Reporter: Torsten Marek <marek>
Component: quartz font backendAssignee: Vladimir Vukicevic <vladimir>
Status: RESOLVED MOVED QA Contact: cairo-bugs mailing list <cairo-bugs>
Severity: normal    
Priority: medium CC: ranma42
Version: 1.8.6   
Hardware: Other   
OS: All   
Whiteboard:
i915 platform: i915 features:
Attachments: Demonstration for the bug

Description Torsten Marek 2009-06-10 03:04:21 UTC
Created attachment 26634 [details]
Demonstration for the bug

cairo_scaled_font_t objects make the program crash (for instance when using text_extents) if they are used after a different font face has been selected on the context. 

Retrieving the text_extents method immediately after getting the font via cairo_get_scaled_font works, so I guess something is free'd to early.

The code I've attached works as expected on X11 with freetype (no crashes), but fails to run on OS X 10.5.
Comment 1 GitLab Migration User 2018-08-25 13:45:24 UTC
-- GitLab Migration Automatic Message --

This bug has been migrated to freedesktop.org's GitLab instance and has been closed from further activity.

You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.freedesktop.org/cairo/cairo/issues/178.

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.