summaryrefslogtreecommitdiff
path: root/src/cff/cffgload.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/cff/cffgload.c')
-rw-r--r--src/cff/cffgload.c15
1 files changed, 15 insertions, 0 deletions
diff --git a/src/cff/cffgload.c b/src/cff/cffgload.c
index 36aa7d1b9..4db77971a 100644
--- a/src/cff/cffgload.c
+++ b/src/cff/cffgload.c
@@ -347,6 +347,21 @@
if ( load_flags & FT_LOAD_SBITS_ONLY )
return FT_THROW( Invalid_Argument );
+ /* OpenType SVG Support Over here */
+ if ( ( load_flags & FT_LOAD_COLOR ) &&
+ ( ((TT_Face)glyph->root.face)->svg ) )
+ {
+ SFNT_Service sfnt = (SFNT_Service)(((TT_Face)glyph->root.face)->sfnt);
+ error = sfnt->load_svg_doc( &(glyph->root), glyph_index );
+ if( error == FT_Err_Ok )
+ {
+ glyph->root.format = FT_GLYPH_FORMAT_SVG;
+ return error;
+ }
+ }
+
+ /* OpenType SVG Support End */
+
/* if we have a CID subfont, use its matrix (which has already */
/* been multiplied with the root matrix) */