summaryrefslogtreecommitdiff
path: root/pango/pangowin32-dwrite-fontmap.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'pango/pangowin32-dwrite-fontmap.cpp')
-rw-r--r--pango/pangowin32-dwrite-fontmap.cpp12
1 files changed, 12 insertions, 0 deletions
diff --git a/pango/pangowin32-dwrite-fontmap.cpp b/pango/pangowin32-dwrite-fontmap.cpp
index a2c03675..6e1d9f0a 100644
--- a/pango/pangowin32-dwrite-fontmap.cpp
+++ b/pango/pangowin32-dwrite-fontmap.cpp
@@ -25,6 +25,10 @@
#include <initguid.h>
#include <dwrite_1.h>
+#ifdef HAVE_HARFBUZZ_DIRECT_WRITE
+#include <hb-directwrite.h>
+#endif
+
#ifdef STRICT
#undef STRICT
#endif
@@ -559,6 +563,14 @@ pango_win32_dwrite_font_check_is_hinted (PangoWin32Font *font)
return result;
}
+#ifdef HAVE_HARFBUZZ_DIRECT_WRITE
+hb_face_t *
+pango_win32_dwrite_font_face_create_hb_face (gpointer face)
+{
+ return hb_directwrite_face_create ((IDWriteFontFace *)face);
+}
+#endif
+
void
pango_win32_dwrite_font_release (gpointer dwrite_font)
{