summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorBehdad Esfahbod <behdad@behdad.org>2006-08-10 13:05:26 -0400
committerBehdad Esfahbod <behdad@behdad.org>2006-08-10 13:05:26 -0400
commitd1520a99d4f9be9206cfcb5febb606eaeb4ccaa9 (patch)
tree0e1362f15f00581a2158f72b097e9ada6fd4c81b /src
parentaea83b908d020e26732753830bb3056e6702a774 (diff)
Remove the ft_load_sfnt_table check from PS/PDF/SVG backends
and make sure that _cairo_ft_load_truetype_table returns UNSUPPORTED if the version of FreeType used doesn't support FT_Load_Sfnt_Table.
Diffstat (limited to 'src')
-rw-r--r--src/cairo-ft-font.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/cairo-ft-font.c b/src/cairo-ft-font.c
index 3091767b..be9db5bc 100644
--- a/src/cairo-ft-font.c
+++ b/src/cairo-ft-font.c
@@ -2012,6 +2012,7 @@ _cairo_ft_load_truetype_table (void *abstract_font,
if (_cairo_ft_scaled_font_is_vertical (&scaled_font->base))
return CAIRO_INT_STATUS_UNSUPPORTED;
+#if HAVE_FT_LOAD_SFNT_TABLE
face = _cairo_ft_unscaled_font_lock_face (unscaled);
if (!face)
return CAIRO_STATUS_NO_MEMORY;
@@ -2021,6 +2022,8 @@ _cairo_ft_load_truetype_table (void *abstract_font,
status = CAIRO_STATUS_SUCCESS;
_cairo_ft_unscaled_font_unlock_face (unscaled);
+#endif
+
return status;
}