summaryrefslogtreecommitdiff
path: root/pango/pangoxft-font.c
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/pangoxft-font.c
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/pangoxft-font.c')
-rw-r--r--pango/pangoxft-font.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/pango/pangoxft-font.c b/pango/pangoxft-font.c
index 779eb886..2526b13d 100644
--- a/pango/pangoxft-font.c
+++ b/pango/pangoxft-font.c
@@ -75,7 +75,7 @@ static void pango_xft_font_get_glyph_extents (PangoFont
PangoRectangle *ink_rect,
PangoRectangle *logical_rect);
-static gpointer pango_xft_font_real_lock_face (PangoFcFont *font);
+static FT_Face pango_xft_font_real_lock_face (PangoFcFont *font);
static void pango_xft_font_real_unlock_face (PangoFcFont *font);
static gboolean pango_xft_font_real_has_char (PangoFcFont *font,
gunichar wc);
@@ -449,12 +449,12 @@ xft_font_get_font (PangoFont *font)
return xfont->xft_font;
}
-static gpointer
+static FT_Face
pango_xft_font_real_lock_face (PangoFcFont *font)
{
XftFont *xft_font = xft_font_get_font ((PangoFont *)font);
- return (gpointer)XftLockFace (xft_font);
+ return XftLockFace (xft_font);
}
static void