mirror of
https://gitlab.freedesktop.org/cairo/cairo.git
synced 2026-05-07 21:28:02 +02:00
[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:
parent
12fb8c9b7c
commit
1f9f9d936b
1 changed files with 2 additions and 0 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue