mirror of
https://gitlab.freedesktop.org/cairo/cairo.git
synced 2026-04-18 15:30:43 +02:00
DWrite: Use twin font if default font not found
If the default font is not found, return CAIRO_INT_STATUS_UNSUPPORTED to cause _cairo_toy_font_face_create_impl_face to create the Twin user font fallback.
This commit is contained in:
parent
672c92e19c
commit
b4014daedf
1 changed files with 1 additions and 1 deletions
|
|
@ -340,7 +340,7 @@ _cairo_dwrite_font_face_create_for_toy (cairo_toy_font_face_t *toy_face,
|
|||
delete face_name;
|
||||
if (!family) {
|
||||
*font_face = (cairo_font_face_t*)&_cairo_font_face_nil;
|
||||
return CAIRO_STATUS_FONT_TYPE_MISMATCH;
|
||||
return (cairo_status_t)CAIRO_INT_STATUS_UNSUPPORTED;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue