ref: 62bc04f4c5b4369cc493ff24b1de27aabd79e0c6
parent: 6fb7b7a09dfe348fefb16d163dc9d91f7503f1f6
author: Werner Lemberg <wl@gnu.org>
date: Sat Apr 30 11:37:14 EDT 2022
* src/sfnt/sfobjs.c (sfnt_load_face): Set `FT_FACE_FLAG_COLOR` for SVG fonts. Fixes #1151.
--- 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 )