mirror of
https://gitlab.freedesktop.org/cairo/cairo.git
synced 2026-05-03 15:58:00 +02:00
[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.
This commit is contained in:
parent
a4dc372bab
commit
2e8ce34454
1 changed files with 2 additions and 4 deletions
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue