summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--pango/pangowin32-dwrite-fontmap.cpp9
-rw-r--r--pango/pangowin32-private.h3
2 files changed, 12 insertions, 0 deletions
diff --git a/pango/pangowin32-dwrite-fontmap.cpp b/pango/pangowin32-dwrite-fontmap.cpp
index 48770224..a2c03675 100644
--- a/pango/pangowin32-dwrite-fontmap.cpp
+++ b/pango/pangowin32-dwrite-fontmap.cpp
@@ -567,3 +567,12 @@ pango_win32_dwrite_font_release (gpointer dwrite_font)
if (font != NULL)
font->Release ();
}
+
+void
+pango_win32_dwrite_font_face_release (gpointer dwrite_font_face)
+{
+ IDWriteFontFace *face = static_cast<IDWriteFontFace *>(dwrite_font_face);
+
+ if (face != NULL)
+ face->Release ();
+}
diff --git a/pango/pangowin32-private.h b/pango/pangowin32-private.h
index 2f9bbf60..1502ecd9 100644
--- a/pango/pangowin32-private.h
+++ b/pango/pangowin32-private.h
@@ -313,6 +313,9 @@ gboolean pango_win32_dwrite_font_is_monospace (gpointer
void pango_win32_dwrite_font_release (gpointer dwrite_font);
+_PANGO_EXTERN
+void pango_win32_dwrite_font_face_release (gpointer dwrite_font_face);
+
gpointer pango_win32_logfontw_get_dwrite_font (LOGFONTW *logfontw);
PangoFontDescription *