Skip to content

Instantly share code, notes, and snippets.

@philcrissman
Created August 20, 2011 20:55
Show Gist options
  • Save philcrissman/1159652 to your computer and use it in GitHub Desktop.
Save philcrissman/1159652 to your computer and use it in GitHub Desktop.
part of cairo-quartz.h
#if CAIRO_HAS_QUARTZ_SURFACE
#include <ApplicationServices/ApplicationServices.h>
CAIRO_BEGIN_DECLS
cairo_public cairo_surface_t *
cairo_quartz_surface_create (cairo_format_t format,
unsigned int width,
unsigned int height);
cairo_public cairo_surface_t *
cairo_quartz_surface_create_for_cg_context (CGContextRef cgContext,
unsigned int width,
unsigned int height);
cairo_public CGContextRef
cairo_quartz_surface_get_cg_context (cairo_surface_t *surface);
#if CAIRO_HAS_QUARTZ_FONT
/*
* Quartz font support
*/
cairo_public cairo_font_face_t *
cairo_quartz_font_face_create_for_cgfont (CGFontRef font);
#ifndef __LP64__
cairo_public cairo_font_face_t *
cairo_quartz_font_face_create_for_atsu_font_id (ATSUFontID font_id);
#endif
#endif /* CAIRO_HAS_QUARTZ_FONT */
CAIRO_END_DECLS
#else
# error Cairo was not compiled with support for the quartz backend
#endif /* CAIRO_HAS_QUARTZ_SURFACE */
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment