mirror of
https://gitlab.freedesktop.org/cairo/cairo.git
synced 2026-05-05 02:58:02 +02:00
[scaled-font] Report the original-font-face
When queried with cairo_scaled_font_get_font_face() return the original font-face which matches the one supplied by the user, rather than the implementation derived face. Fixes test/font-face-get-type.
This commit is contained in:
parent
6d693f6bd7
commit
25c3750939
1 changed files with 3 additions and 0 deletions
|
|
@ -2744,6 +2744,9 @@ cairo_scaled_font_get_font_face (cairo_scaled_font_t *scaled_font)
|
|||
if (scaled_font->status)
|
||||
return (cairo_font_face_t*) &_cairo_font_face_nil;
|
||||
|
||||
if (scaled_font->original_font_face != NULL)
|
||||
return scaled_font->original_font_face;
|
||||
|
||||
return scaled_font->font_face;
|
||||
}
|
||||
slim_hidden_def (cairo_scaled_font_get_font_face);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue