Commit 62bc04f4c5b4369cc493ff24b1de27aabd79e0c6

Werner Lemberg 2022-04-30T15:37:14

* src/sfnt/sfobjs.c (sfnt_load_face): Set `FT_FACE_FLAG_COLOR` for SVG fonts. Fixes #1151.

1
2
3
4
5
6
7
8
9
10
11
12
13
14
diff --git a/src/sfnt/sfobjs.c b/src/sfnt/sfobjs.c
index 35d3d6c..a0da984 100644
--- a/src/sfnt/sfobjs.c
+++ b/src/sfnt/sfobjs.c
@@ -1066,7 +1066,8 @@
        */
       if ( face->sbit_table_type == TT_SBIT_TABLE_TYPE_CBLC ||
            face->sbit_table_type == TT_SBIT_TABLE_TYPE_SBIX ||
-           face->colr                                       )
+           face->colr                                       ||
+           face->svg                                        )
         flags |= FT_FACE_FLAG_COLOR;      /* color glyphs */
 
       if ( has_outline == TRUE )