Scaled font faces cannot be used after another call to select_font_face on quartz
Submitted by Torsten Marek
Assigned to Vladimir Vukicevic @vladimir
Description
Created attachment 26634 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.
Attachment 26634, "Demonstration for the bug":
quartz-scaledfont-crash.c
Version: 1.8.6