summaryrefslogtreecommitdiff
path: root/src/cairo-type1-fallback.c
diff options
context:
space:
mode:
authorChris Wilson <chris@chris-wilson.co.uk>2008-10-17 15:33:07 +0100
committerChris Wilson <chris@chris-wilson.co.uk>2008-10-19 09:36:51 +0100
commit12fb8c9b7c808ab20bee466aa28ee368559fd902 (patch)
treeeafcff288d576302bbb8853dead1f684c8c6ffb9 /src/cairo-type1-fallback.c
parentca5f868a73b35eda737ae6596efff91f82eeea75 (diff)
[type1] Acquire scaled_font mutex.
In order to perform glyph lookups we need to be holding the mutex for the scaled_font.
Diffstat (limited to 'src/cairo-type1-fallback.c')
-rw-r--r--src/cairo-type1-fallback.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/cairo-type1-fallback.c b/src/cairo-type1-fallback.c
index 75503103a..840fc7d1d 100644
--- a/src/cairo-type1-fallback.c
+++ b/src/cairo-type1-fallback.c
@@ -348,6 +348,7 @@ cairo_type1_font_create_charstring (cairo_type1_font_t *font,
cairo_bool_t emit_path = TRUE;
/* This call may return CAIRO_INT_STATUS_UNSUPPORTED for bitmap fonts. */
+ CAIRO_MUTEX_LOCK (font->type1_scaled_font->mutex);
status = _cairo_scaled_glyph_lookup (font->type1_scaled_font,
glyph_index,
CAIRO_SCALED_GLYPH_INFO_METRICS|
@@ -363,6 +364,7 @@ cairo_type1_font_create_charstring (cairo_type1_font_t *font,
CAIRO_SCALED_GLYPH_INFO_METRICS,
&scaled_glyph);
}
+ CAIRO_MUTEX_UNLOCK (font->type1_scaled_font->mutex);
if (status)
return status;