diff options
author | Chun-wei Fan <fanchunwei@src.gnome.org> | 2022-08-16 12:54:26 +0800 |
---|---|---|
committer | Chun-wei Fan <fanchunwei@src.gnome.org> | 2022-09-26 11:04:26 +0800 |
commit | 7a623b7065cd519bc4eab95aeb381f54023d4a3b (patch) | |
tree | 293cb543155d5c00c8ceb41a3978b49257ae065c /pango/pangowin32-dwrite-fontmap.cpp | |
parent | 7179fd3cd89c600381fd0fd22d3d60731977ed56 (diff) | |
download | pango-7a623b7065cd519bc4eab95aeb381f54023d4a3b.tar.gz |
PangoWin32: Add private API to clean up IDWriteFontFace
...which is needed for PangoCairo for Windows, when DirectWrite is used to
create the cairo_font_face_t, so that that object does get cleaned up when the
cairo_font_face_t is destroyed.
Diffstat (limited to 'pango/pangowin32-dwrite-fontmap.cpp')
-rw-r--r-- | pango/pangowin32-dwrite-fontmap.cpp | 9 |
1 files changed, 9 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 (); +} |