summaryrefslogtreecommitdiff
path: root/pango/pangofc-font.h
diff options
context:
space:
mode:
authorMatthias Clasen <mclasen@redhat.com>2019-08-06 12:56:02 -0400
committerMatthias Clasen <mclasen@redhat.com>2019-08-06 12:56:02 -0400
commit5af6340eef9833f0f8e878939e88d98b11813578 (patch)
tree8ff5a1b362c8f13b58b04bd1cb34e13f0d3edabc /pango/pangofc-font.h
parent22dfeef4a26984ba81c6ff30117017dac372b706 (diff)
downloadpango-5af6340eef9833f0f8e878939e88d98b11813578.tar.gz
Reinstate the return type of pango_fc_font_lock_face()
We did not remove the freetype dependency from libpango anyway, so bite the bullet, and keep including freetype headers. Changing the return type to gpointer broke C++ users, where casts from void* are not automatic.
Diffstat (limited to 'pango/pangofc-font.h')
-rw-r--r--pango/pangofc-font.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/pango/pangofc-font.h b/pango/pangofc-font.h
index a7c5f87d..0cd4f174 100644
--- a/pango/pangofc-font.h
+++ b/pango/pangofc-font.h
@@ -32,6 +32,8 @@
#pragma GCC diagnostic ignored "-Wundef"
#endif
+#include <ft2build.h>
+#include FT_FREETYPE_H
#include <fontconfig/fontconfig.h>
#ifdef PANGO_COMPILATION
@@ -64,7 +66,7 @@ void pango_fc_font_kern_glyphs (PangoFcFont *font,
PangoGlyphString *glyphs);
PANGO_DEPRECATED_IN_1_44_FOR(pango_font_get_hb_font)
-gpointer pango_fc_font_lock_face (PangoFcFont *font);
+FT_Face pango_fc_font_lock_face (PangoFcFont *font);
PANGO_DEPRECATED_IN_1_44_FOR(pango_font_get_hb_font)
void pango_fc_font_unlock_face (PangoFcFont *font);