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:
Behdad Esfahbod 2006-08-03 00:20:35 -04:00
parent 2c0959141a
commit 34a0b728fb

View file

@ -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;