summaryrefslogtreecommitdiff
path: root/pango
diff options
context:
space:
mode:
authorMatthias Clasen <mclasen@redhat.com>2019-07-04 17:39:06 +0000
committerMatthias Clasen <mclasen@redhat.com>2019-07-18 12:47:53 -0700
commitfe3294ccf5a0b37c8a0950cc994ee0dfdd1dd909 (patch)
tree3e06853b3268dbcda8fd8a00efca07ee7b70b670 /pango
parente32db1e971d80ec12d095b2180a9ebbcd8217317 (diff)
downloadpango-fe3294ccf5a0b37c8a0950cc994ee0dfdd1dd909.tar.gz
fc: Drop freetype from pangofc-font.h
Stop using FT_Face here, so we can stop including freetype headers.
Diffstat (limited to 'pango')
-rw-r--r--pango/pangocairo-fcfont.c2
-rw-r--r--pango/pangofc-font-private.h2
-rw-r--r--pango/pangofc-font.c2
-rw-r--r--pango/pangofc-font.h5
-rw-r--r--pango/pangoft2.c4
-rw-r--r--pango/pangoxft-font.c6
6 files changed, 9 insertions, 12 deletions
diff --git a/pango/pangocairo-fcfont.c b/pango/pangocairo-fcfont.c
index 0019f83a..9c450317 100644
--- a/pango/pangocairo-fcfont.c
+++ b/pango/pangocairo-fcfont.c
@@ -118,7 +118,7 @@ pango_cairo_fc_font_get_glyph_extents (PangoFont *font,
logical_rect);
}
-static FT_Face
+static gpointer
pango_cairo_fc_font_lock_face (PangoFcFont *font)
{
PangoCairoFcFont *cffont = (PangoCairoFcFont *) (font);
diff --git a/pango/pangofc-font-private.h b/pango/pangofc-font-private.h
index 07b088b3..91f89207 100644
--- a/pango/pangofc-font-private.h
+++ b/pango/pangofc-font-private.h
@@ -109,7 +109,7 @@ struct _PangoFcFontClass
PangoFontClass parent_class;
/*< public >*/
- FT_Face (*lock_face) (PangoFcFont *font);
+ gpointer (*lock_face) (PangoFcFont *font);
void (*unlock_face) (PangoFcFont *font);
gboolean (*has_char) (PangoFcFont *font,
gunichar wc);
diff --git a/pango/pangofc-font.c b/pango/pangofc-font.c
index 2bb57e0a..76afdf7e 100644
--- a/pango/pangofc-font.c
+++ b/pango/pangofc-font.c
@@ -590,7 +590,7 @@ pango_fc_font_real_get_glyph (PangoFcFont *font,
* Since: 1.4
* Deprecated: 1.44: Use pango_font_get_hb_font() instead
**/
-FT_Face
+gpointer
pango_fc_font_lock_face (PangoFcFont *font)
{
g_return_val_if_fail (PANGO_IS_FC_FONT (font), NULL);
diff --git a/pango/pangofc-font.h b/pango/pangofc-font.h
index 5d04088e..fc6ee529 100644
--- a/pango/pangofc-font.h
+++ b/pango/pangofc-font.h
@@ -30,8 +30,6 @@
#pragma GCC diagnostic ignored "-Wundef"
#endif
-#include <ft2build.h>
-#include FT_FREETYPE_H
#include <fontconfig/fontconfig.h>
#ifdef PANGO_COMPILATION
@@ -47,12 +45,11 @@ G_BEGIN_DECLS
typedef struct _PangoFcFont PangoFcFont;
typedef struct _PangoFcFontClass PangoFcFontClass;
-
PANGO_AVAILABLE_IN_ALL
GType pango_fc_font_get_type (void) G_GNUC_CONST;
PANGO_DEPRECATED_IN_1_44_FOR(pango_font_get_hb_font)
-FT_Face pango_fc_font_lock_face (PangoFcFont *font);
+gpointer 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);
diff --git a/pango/pangoft2.c b/pango/pangoft2.c
index e2d5685f..e8bb8e1f 100644
--- a/pango/pangoft2.c
+++ b/pango/pangoft2.c
@@ -64,7 +64,7 @@ static void pango_ft2_font_get_glyph_extents (PangoFont *font,
PangoRectangle *ink_rect,
PangoRectangle *logical_rect);
-static FT_Face pango_ft2_font_real_lock_face (PangoFcFont *font);
+static gpointer pango_ft2_font_real_lock_face (PangoFcFont *font);
static void pango_ft2_font_real_unlock_face (PangoFcFont *font);
@@ -430,7 +430,7 @@ pango_ft2_font_get_kerning (PangoFont *font,
return PANGO_UNITS_26_6 (kerning.x);
}
-static FT_Face
+static gpointer
pango_ft2_font_real_lock_face (PangoFcFont *font)
{
return pango_ft2_font_get_face ((PangoFont *)font);
diff --git a/pango/pangoxft-font.c b/pango/pangoxft-font.c
index 2526b13d..779eb886 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 FT_Face pango_xft_font_real_lock_face (PangoFcFont *font);
+static gpointer 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 FT_Face
+static gpointer
pango_xft_font_real_lock_face (PangoFcFont *font)
{
XftFont *xft_font = xft_font_get_font ((PangoFont *)font);
- return XftLockFace (xft_font);
+ return (gpointer)XftLockFace (xft_font);
}
static void