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.
-- 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.