mirror of
https://gitlab.freedesktop.org/cairo/cairo.git
synced 2026-05-08 16:08:20 +02:00
[user-font] Release fontmap lock around user callback
This makes the user-font-proxy to work now.
This commit is contained in:
parent
127c4b8e64
commit
4c1c9d33b1
1 changed files with 4 additions and 1 deletions
|
|
@ -326,9 +326,12 @@ _cairo_user_font_face_scaled_font_create (void *abstract_
|
|||
return status;
|
||||
}
|
||||
|
||||
if (font_face->scaled_font_methods.init != NULL)
|
||||
if (font_face->scaled_font_methods.init != NULL) {
|
||||
CAIRO_MUTEX_UNLOCK (_cairo_scaled_font_map_mutex);
|
||||
status = font_face->scaled_font_methods.init (&user_scaled_font->base,
|
||||
&font_extents);
|
||||
CAIRO_MUTEX_LOCK (_cairo_scaled_font_map_mutex);
|
||||
}
|
||||
|
||||
if (status == CAIRO_STATUS_SUCCESS)
|
||||
status = _cairo_scaled_font_set_metrics (&user_scaled_font->base, &font_extents);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue