[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:
Chris Wilson 2009-06-07 19:23:04 +01:00
parent 6d693f6bd7
commit 25c3750939

View file

@ -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);