summaryrefslogtreecommitdiff
path: root/pango/pangowin32-private.h
diff options
context:
space:
mode:
authorChun-wei Fan <fanchunwei@src.gnome.org>2020-11-11 20:15:25 +0800
committerChun-wei Fan <fanchunwei@src.gnome.org>2020-12-03 18:53:40 +0800
commit497ee87d5105fb3b6a957abdaf4754ab1d6c6533 (patch)
tree1cdb5930ef0f942e8936f0a57b51e6314820ad26 /pango/pangowin32-private.h
parent66e2ea5f428893e102fe2cbaa45de0852118f5e2 (diff)
downloadpango-497ee87d5105fb3b6a957abdaf4754ab1d6c6533.tar.gz
PangoWin32: Initialize DirectWrite as wellwin32-font-language
We want to start using DirectWrite to help us implement some features that are not that easily done with GDI/Uniscribe, via a GDI interop layer as provided by DirectWrite, and by creating and keeping track of the IDWriteFont's that are created from each of the LOGFONTs that we acquire by quering the fonts that is installed on the system.
Diffstat (limited to 'pango/pangowin32-private.h')
-rw-r--r--pango/pangowin32-private.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/pango/pangowin32-private.h b/pango/pangowin32-private.h
index 9ea00dbc..da957091 100644
--- a/pango/pangowin32-private.h
+++ b/pango/pangowin32-private.h
@@ -52,6 +52,10 @@
#define PING(printlist)
#endif
+/* this is a C-compatible counterpart of the DirectWrite headers */
+#define COBJMACROS
+#include "dwrite_c.h"
+
#include "pangowin32.h"
#include "pango-font-private.h"
#include "pango-fontset-private.h"
@@ -152,6 +156,7 @@ struct _PangoWin32Face
gpointer family;
LOGFONTW logfontw;
+ IDWriteFont *dwrite_font;
PangoFontDescription *description;
PangoCoverage *coverage;
char *face_name;
@@ -274,4 +279,6 @@ HDC _pango_win32_get_display_dc (void);
extern gboolean _pango_win32_debug;
+IDWriteGdiInterop * _pango_win32_acquire_dwrite_gdi_interop (void);
+
#endif /* __PANGOWIN32_PRIVATE_H__ */