mirror of
https://gitlab.freedesktop.org/cairo/cairo.git
synced 2026-05-05 16:58:01 +02:00
Fail FreeType load_truetype_table on vertical fonts as we don't do it
right now. Failing disables the subsetting for vertical fonts, like it was being done before the recent changes to the TrueType subsetter.
This commit is contained in:
parent
2c0959141a
commit
34a0b728fb
1 changed files with 3 additions and 0 deletions
|
|
@ -2003,6 +2003,9 @@ _cairo_ft_load_truetype_table (void *abstract_font,
|
|||
FT_Face face;
|
||||
cairo_status_t status = CAIRO_INT_STATUS_UNSUPPORTED;
|
||||
|
||||
if (_cairo_ft_scaled_font_is_vertical (scaled_font))
|
||||
return CAIRO_INT_STATUS_UNSUPPORTED;
|
||||
|
||||
face = _cairo_ft_unscaled_font_lock_face (unscaled);
|
||||
if (!face)
|
||||
return CAIRO_STATUS_NO_MEMORY;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue