diff options
author | Chun-wei Fan <fanchunwei@src.gnome.org> | 2022-07-21 14:53:42 +0800 |
---|---|---|
committer | Chun-wei Fan <fanchunwei@src.gnome.org> | 2022-09-26 11:04:25 +0800 |
commit | 902c839ab1725dac7e7a8a4ba2bf4b91c0cb1629 (patch) | |
tree | ac4f410447a58cbbc6c56b7d5e497daa85cc4b1e /pango/pangocairo-win32font.c | |
parent | b406dd6e1282e7a98ed9a7b3d8b0e6af416a9797 (diff) | |
download | pango-902c839ab1725dac7e7a8a4ba2bf4b91c0cb1629.tar.gz |
PangoWin32: Implement is_hinted on Windows using DirectWrite
... by querying the font table 'gasp' and see whether the bits needed
for hinting are there. Codewise, it is simpler with GDI+, but it would
then require more overhead since GDI(+) operations are needed (this means
"slower") and we need to put boilerplates for using GDI+ from our
plain-C code.
Diffstat (limited to 'pango/pangocairo-win32font.c')
-rw-r--r-- | pango/pangocairo-win32font.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/pango/pangocairo-win32font.c b/pango/pangocairo-win32font.c index 9f4f5c14..5b860bab 100644 --- a/pango/pangocairo-win32font.c +++ b/pango/pangocairo-win32font.c @@ -268,6 +268,7 @@ _pango_cairo_win32_font_new (PangoCairoWin32FontMap *cwfontmap, win32font->size, &win32font->logfontw); + win32font->is_hinted = pango_win32_dwrite_font_check_is_hinted (win32font); cairo_matrix_init_identity (&font_matrix); cairo_matrix_scale (&font_matrix, size, size); |