diff options
author | Adrian Johnson <ajohnson@redneon.com> | 2022-04-17 13:34:11 +0930 |
---|---|---|
committer | Adrian Johnson <ajohnson@redneon.com> | 2022-04-19 19:58:44 +0930 |
commit | b4014daedf8960098c12c519bb7455b87f524137 (patch) | |
tree | 725f5cab99ecec24b2bf836da4179b9e879d4f68 /src/win32 | |
parent | 672c92e19c9fab1a5fa0b3bfc5076b3cab3b5319 (diff) | |
download | cairo-b4014daedf8960098c12c519bb7455b87f524137.tar.gz |
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.
Diffstat (limited to 'src/win32')
-rw-r--r-- | src/win32/cairo-dwrite-font.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/win32/cairo-dwrite-font.cpp b/src/win32/cairo-dwrite-font.cpp index 1e9781ec8..93d98bfec 100644 --- a/src/win32/cairo-dwrite-font.cpp +++ b/src/win32/cairo-dwrite-font.cpp @@ -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; } } |