[cairo-commit] src/cairo-ft-font.c

Behdad Esfahbod behdad at kemper.freedesktop.org
Wed Aug 2 21:20:58 PDT 2006


 src/cairo-ft-font.c |    3 +++
 1 files changed, 3 insertions(+)

New commits:
diff-tree 34a0b728fb0e19a4d03152318a002362791c30d1 (from 2c0959141ae89bde6c773933b41f4d965d6a1ae7)
Author: Behdad Esfahbod <behdad at behdad.org>
Date:   Thu Aug 3 00:20:35 2006 -0400

    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.

diff --git a/src/cairo-ft-font.c b/src/cairo-ft-font.c
index 002c322..6e333a3 100644
--- a/src/cairo-ft-font.c
+++ b/src/cairo-ft-font.c
@@ -2003,6 +2003,9 @@ _cairo_ft_load_truetype_table (void	    
     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;


More information about the cairo-commit mailing list