From 57c2b75c229ac7811c573548ae50e6b0e4ecf862 Mon Sep 17 00:00:00 2001 From: Vladimir Vukicevic Date: Tue, 15 Jan 2008 14:27:14 -0800 Subject: [quartz] Store the CGFontRef and reuse it for rendering Previously the CGFontRef was recreated each time in show_glyphs; this caused the font to get re-embedded in any PDF files that were being generated through Quartz. --- src/cairo-quartz-private.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/cairo-quartz-private.h') diff --git a/src/cairo-quartz-private.h b/src/cairo-quartz-private.h index 5e46e8d49..52a3d7fb6 100644 --- a/src/cairo-quartz-private.h +++ b/src/cairo-quartz-private.h @@ -72,6 +72,9 @@ _cairo_atsui_scaled_font_get_atsu_style (cairo_scaled_font_t *sfont); ATSUFontID _cairo_atsui_scaled_font_get_atsu_font_id (cairo_scaled_font_t *sfont); + +CGFontRef +_cairo_atsui_scaled_font_get_cg_font_ref (cairo_scaled_font_t *sfont); #endif /* CAIRO_HAS_ATSUI_FONT */ #endif /* CAIRO_QUARTZ_PRIVATE_H */ -- cgit v1.2.3