diff options
author | Chun-wei Fan <fanchunwei@src.gnome.org> | 2022-07-15 18:48:43 +0800 |
---|---|---|
committer | Chun-wei Fan <fanchunwei@src.gnome.org> | 2022-09-26 11:04:25 +0800 |
commit | 894821e8b4593ece2437481fd607022b36d94f1f (patch) | |
tree | d52f84d460a989e4b4aab50d17a25530efb1f444 /pango/pangowin32-private.h | |
parent | 43f3d8b3c22a02b83a3221bd7a0de52a88524c07 (diff) | |
download | pango-894821e8b4593ece2437481fd607022b36d94f1f.tar.gz |
PangoWin32: Query font descriptions using DirectWrite on LOGFONTW's
We now use DirectWrite to query the font weight, stretch, description
and so on by using first DirectWrite's GdiInterop to convert the
logfontw into an IDirectWriteFont, since the support in there for
querying font attributes are more complete in there. Take out the
warned fonts items, as DirectWrite would support the font attributes
that we need much better (i.e. stretch and so on), and the warned fonts
items will get into the way.
Portions based on Luca Bacci's work for querying the font description
for Windows using DirectWrite for the upcoming Pango2.
Diffstat (limited to 'pango/pangowin32-private.h')
-rw-r--r-- | pango/pangowin32-private.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/pango/pangowin32-private.h b/pango/pangowin32-private.h index 1d843ec2..d0ef6dbc 100644 --- a/pango/pangowin32-private.h +++ b/pango/pangowin32-private.h @@ -107,9 +107,6 @@ struct _PangoWin32FontMap /* keeps track of the system font aliases that we might have */ GHashTable *aliases; - /* keeps track of the warned fonts that we might have */ - GHashTable *warned_fonts; - double resolution; /* (points / pixel) * PANGO_SCALE */ }; @@ -307,7 +304,10 @@ gboolean pango_win32_dwrite_font_is_monospace (gpointer void pango_win32_dwrite_font_release (gpointer dwrite_font); -gpointer pango_win32_logfontw_get_dwrite_font (LOGFONTW *logfontw); +gpointer pango_win32_logfontw_get_dwrite_font (LOGFONTW *logfontw); + +PangoFontDescription * +pango_win32_font_description_from_logfontw_dwrite (const LOGFONTW *logfontw); G_END_DECLS |