diff options
author | Adrian Johnson <ajohnson@redneon.com> | 2021-08-11 07:19:54 +0930 |
---|---|---|
committer | Adrian Johnson <ajohnson@redneon.com> | 2022-02-27 15:44:58 +1030 |
commit | 7e644409eab3a495970c6d8dafdab33610e86f87 (patch) | |
tree | f46c4245e1580cf3abdf1fba170c9e54dec00b7a /src/cairoint.h | |
parent | fa76ebec03ebf3252b18e0bb319ca42e00503083 (diff) | |
download | cairo-7e644409eab3a495970c6d8dafdab33610e86f87.tar.gz |
Fix dwrite toy fonts
Diffstat (limited to 'src/cairoint.h')
-rw-r--r-- | src/cairoint.h | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/src/cairoint.h b/src/cairoint.h index 80b695feb..cfa77ddbb 100644 --- a/src/cairoint.h +++ b/src/cairoint.h @@ -677,6 +677,12 @@ extern const cairo_private struct _cairo_font_face_backend _cairo_win32_font_fac #endif +#if CAIRO_HAS_DWRITE_FONT + +extern const cairo_private struct _cairo_font_face_backend _cairo_dwrite_font_face_backend; + +#endif + #if CAIRO_HAS_QUARTZ_FONT extern const cairo_private struct _cairo_font_face_backend _cairo_quartz_font_face_backend; @@ -705,11 +711,17 @@ struct _cairo_surface_attributes { #define CAIRO_FONT_WEIGHT_DEFAULT CAIRO_FONT_WEIGHT_NORMAL #define CAIRO_WIN32_FONT_FAMILY_DEFAULT "Arial" +#define CAIRO_DWRITE_FONT_FAMILY_DEFAULT "Arial" #define CAIRO_QUARTZ_FONT_FAMILY_DEFAULT "Helvetica" #define CAIRO_FT_FONT_FAMILY_DEFAULT "" #define CAIRO_USER_FONT_FAMILY_DEFAULT "@cairo:" -#if CAIRO_HAS_WIN32_FONT +#if CAIRO_HAS_DWRITE_FONT + +#define CAIRO_FONT_FAMILY_DEFAULT CAIRO_DWRITE_FONT_FAMILY_DEFAULT +#define CAIRO_FONT_FACE_BACKEND_DEFAULT &_cairo_dwrite_font_face_backend + +#elif CAIRO_HAS_WIN32_FONT #define CAIRO_FONT_FAMILY_DEFAULT CAIRO_WIN32_FONT_FAMILY_DEFAULT #define CAIRO_FONT_FACE_BACKEND_DEFAULT &_cairo_win32_font_face_backend |