[pdf] Acquire scaled_font mutex for show_text_glyphs().

We need to be holding the scaled font mutex over a call to draw text
glyphs from within an smask group.
This commit is contained in:
Chris Wilson 2008-10-17 15:39:56 +01:00
parent 12fb8c9b7c
commit 1f9f9d936b

View file

@ -4044,12 +4044,14 @@ _cairo_pdf_surface_write_smask_group (cairo_pdf_surface_t *surface,
&group->ctm_inverse);
break;
case PDF_SHOW_GLYPHS:
CAIRO_MUTEX_LOCK (group->scaled_font->mutex);
status = _cairo_pdf_operators_show_text_glyphs (&surface->pdf_operators,
group->utf8, group->utf8_len,
group->glyphs, group->num_glyphs,
group->clusters, group->num_clusters,
group->cluster_flags,
group->scaled_font);
CAIRO_MUTEX_UNLOCK (group->scaled_font->mutex);
break;
}
if (status)