mirror of
https://gitlab.freedesktop.org/cairo/cairo.git
synced 2026-03-07 04:00:31 +01:00
Check is_synthetic() font backend exists before calling it
This commit is contained in:
parent
12b1cbb07e
commit
8db239660f
2 changed files with 2 additions and 2 deletions
|
|
@ -1907,7 +1907,7 @@ _cairo_cff_font_create (cairo_scaled_font_subset_t *scaled_font_subset,
|
|||
return CAIRO_INT_STATUS_UNSUPPORTED;
|
||||
|
||||
/* We need to use a fallback font generated from the synthesized outlines. */
|
||||
if (backend->is_synthetic (scaled_font_subset->scaled_font))
|
||||
if (backend->is_synthetic && backend->is_synthetic (scaled_font_subset->scaled_font))
|
||||
return CAIRO_INT_STATUS_UNSUPPORTED;
|
||||
|
||||
data_length = 0;
|
||||
|
|
|
|||
|
|
@ -157,7 +157,7 @@ _cairo_truetype_font_create (cairo_scaled_font_subset_t *scaled_font_subset,
|
|||
*/
|
||||
|
||||
/* We need to use a fallback font generated from the synthesized outlines. */
|
||||
if (backend->is_synthetic (scaled_font_subset->scaled_font))
|
||||
if (backend->is_synthetic && backend->is_synthetic (scaled_font_subset->scaled_font))
|
||||
return CAIRO_INT_STATUS_UNSUPPORTED;
|
||||
|
||||
size = sizeof (tt_head_t);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue