mirror of
https://gitlab.freedesktop.org/cairo/cairo.git
synced 2026-05-05 09:58:12 +02:00
[type1] Acquire scaled_font mutex.
In order to perform glyph lookups we need to be holding the mutex for the scaled_font.
This commit is contained in:
parent
ca5f868a73
commit
12fb8c9b7c
1 changed files with 2 additions and 0 deletions
|
|
@ -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;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue