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/pangowin32-private.h | |
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/pangowin32-private.h')
-rw-r--r-- | pango/pangowin32-private.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/pango/pangowin32-private.h b/pango/pangowin32-private.h index d0ef6dbc..c66795fb 100644 --- a/pango/pangowin32-private.h +++ b/pango/pangowin32-private.h @@ -142,6 +142,9 @@ struct _PangoWin32Font */ gboolean in_cache; GHashTable *glyph_info; + + /* whether the font supports hinting */ + gboolean is_hinted; }; struct _PangoWin32FontClass @@ -284,6 +287,9 @@ _PANGO_EXTERN gpointer _pango_win32_copy_cmap (gpointer cmap, guint16 cmap_format); +_PANGO_EXTERN +gboolean pango_win32_dwrite_font_check_is_hinted (PangoWin32Font *font); + extern gboolean _pango_win32_debug; void pango_win32_insert_font (PangoWin32FontMap *win32fontmap, |