summaryrefslogtreecommitdiff
path: root/pango/pangoft2-render.c
diff options
context:
space:
mode:
authorMatthias Clasen <mclasen@redhat.com>2013-01-07 21:01:45 -0500
committerMatthias Clasen <mclasen@redhat.com>2013-01-07 21:07:00 -0500
commit2dc0c3dbb1c389c3a3ba12a5c5c85f21dca46e84 (patch)
tree3d0355d5068cd5032f73f99442ed2df5afdefc18 /pango/pangoft2-render.c
parentb9bdbfdbb454bd172820344244b881cb4dc7826e (diff)
downloadpango-2dc0c3dbb1c389c3a3ba12a5c5c85f21dca46e84.tar.gz
Don't use the deprecated pango_ft2_font_get_face
Replace it with pango_fc_font_lock/unlock_face calls.
Diffstat (limited to 'pango/pangoft2-render.c')
-rw-r--r--pango/pangoft2-render.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/pango/pangoft2-render.c b/pango/pangoft2-render.c
index 42923f49..60cf4329 100644
--- a/pango/pangoft2-render.c
+++ b/pango/pangoft2-render.c
@@ -210,7 +210,7 @@ pango_ft2_font_render_glyph (PangoFont *font,
return box;
}
- face = pango_ft2_font_get_face (font);
+ face = pango_fc_font_lock_face (PANGO_FC_FONT (font));
if (face)
{
@@ -231,6 +231,8 @@ pango_ft2_font_render_glyph (PangoFont *font,
rendered->bitmap_left = face->glyph->bitmap_left;
rendered->bitmap_top = face->glyph->bitmap_top;
+ pango_fc_font_unlock_face (PANGO_FC_FONT (font));
+
if (G_UNLIKELY (!rendered->bitmap.buffer)) {
g_slice_free (PangoFT2RenderedGlyph, rendered);
return NULL;
@@ -240,6 +242,8 @@ pango_ft2_font_render_glyph (PangoFont *font,
}
else
{
+ pango_fc_font_unlock_face (PANGO_FC_FONT (font));
+
generic_box:
return pango_ft2_font_render_box_glyph (PANGO_UNKNOWN_GLYPH_WIDTH,
PANGO_UNKNOWN_GLYPH_HEIGHT,