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:
Adrian Johnson 2022-04-17 13:34:11 +09:30
parent 672c92e19c
commit b4014daedf

View file

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