diff options
author | Chris Wilson <chris@chris-wilson.co.uk> | 2009-08-10 16:51:07 +0100 |
---|---|---|
committer | Chris Wilson <chris@chris-wilson.co.uk> | 2009-08-10 17:20:00 +0100 |
commit | 2e8ce34454a4d93986f590b1d2b024d1a1eb6bde (patch) | |
tree | 603751189a4fa6a6464947f9c021c971d4fe9a33 /src/cairo-quartz-font.c | |
parent | a4dc372bab8ebe75a9f7d17a9a2e6fc8d9d2d747 (diff) |
[quartz] Use the implementation font-face not the associated
As the associated is now explicitly the font-face used to create the font
by the user, whereas what we require is the current implementation
(quartz) font.
Diffstat (limited to 'src/cairo-quartz-font.c')
-rw-r--r-- | src/cairo-quartz-font.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/cairo-quartz-font.c b/src/cairo-quartz-font.c index 91c16545..a8a9fc51 100644 --- a/src/cairo-quartz-font.c +++ b/src/cairo-quartz-font.c @@ -345,10 +345,8 @@ static cairo_quartz_font_face_t * _cairo_quartz_scaled_to_face (void *abstract_font) { cairo_quartz_scaled_font_t *sfont = (cairo_quartz_scaled_font_t*) abstract_font; - cairo_font_face_t *font_face = cairo_scaled_font_get_font_face (&sfont->base); - if (!font_face || font_face->backend->type != CAIRO_FONT_TYPE_QUARTZ) - return NULL; - + cairo_font_face_t *font_face = sfont->base.font_face; + assert (font_face->backend->type == CAIRO_FONT_TYPE_QUARTZ); return (cairo_quartz_font_face_t*) font_face; } |