Created
June 28, 2013 18:27
-
-
Save bpowers/5886884 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
void draw(cairo_t* cr) | |
{ | |
// ... do some vector drawing | |
cairo_surface_t* surface = cairo_get_target(cr); | |
cairo_surface_flush(surface); | |
CGContextRef cgctx = cairo_quartz_surface_get_cg_context(surface); | |
// use Apple's CoreText API | |
cairo_surface_mark_dirty(surface); | |
// do more vector drawing | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment