summaryrefslogtreecommitdiff
path: root/pango/pangoft2.c
diff options
context:
space:
mode:
authorBehdad Esfahbod <behdad@behdad.org>2013-01-17 17:11:19 -0600
committerBehdad Esfahbod <behdad@behdad.org>2013-01-17 17:11:19 -0600
commit10cc6557ba24239570ee9a7bcaa0a553aae9df95 (patch)
tree254737369f2a5a9366a4ee95122f860a037adc13 /pango/pangoft2.c
parentf4987f06ee85a87b8e787bf0881de6a2223e8fd5 (diff)
downloadpango-10cc6557ba24239570ee9a7bcaa0a553aae9df95.tar.gz
Revert "Don't use the deprecated pango_ft2_font_get_face"
This reverts commit 2dc0c3dbb1c389c3a3ba12a5c5c85f21dca46e84. This doesn't make sense. It ends up in infinite recursion because pangofc is calling lock_face on pangoft2, which would recursively call it on pangofc... Was causing hang at startup of Inkscape. If the deprecated warnings are an issue, they need to be dealt with in some other way.
Diffstat (limited to 'pango/pangoft2.c')
-rw-r--r--pango/pangoft2.c17
1 files changed, 5 insertions, 12 deletions
diff --git a/pango/pangoft2.c b/pango/pangoft2.c
index cbe1d210..dc6db5da 100644
--- a/pango/pangoft2.c
+++ b/pango/pangoft2.c
@@ -424,13 +424,12 @@ pango_ft2_font_get_kerning (PangoFont *font,
static FT_Face
pango_ft2_font_real_lock_face (PangoFcFont *font)
{
- return pango_fc_font_lock_face (font);
+ return pango_ft2_font_get_face ((PangoFont *)font);
}
static void
-pango_ft2_font_real_unlock_face (PangoFcFont *font)
+pango_ft2_font_real_unlock_face (PangoFcFont *font G_GNUC_UNUSED)
{
- pango_fc_font_unlock_face (font);
}
static gboolean
@@ -500,18 +499,12 @@ pango_ft2_font_get_coverage (PangoFont *font,
PangoGlyph
pango_ft2_get_unknown_glyph (PangoFont *font)
{
- PangoFcFont *fc_font = PANGO_FC_FONT (font);
- FT_Face face;
- PangoGlyph glyph;
-
- face = pango_fc_font_lock_face (fc_font);
+ FT_Face face = pango_ft2_font_get_face (font);
if (face && FT_IS_SFNT (face))
/* TrueType fonts have an 'unknown glyph' box on glyph index 0 */
- glyph = 0;
+ return 0;
else
- glyph = PANGO_GLYPH_EMPTY;
- pango_fc_font_unlock_face (fc_font);
- return glyph;
+ return PANGO_GLYPH_EMPTY;
}
typedef struct