freetype-commit
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[freetype2] master 62bc04f4c: * src/sfnt/sfobjs.c (sfnt_load_face): Set


From: Werner Lemberg
Subject: [freetype2] master 62bc04f4c: * src/sfnt/sfobjs.c (sfnt_load_face): Set `FT_FACE_FLAG_COLOR` for SVG fonts.
Date: Sat, 30 Apr 2022 09:39:20 -0400 (EDT)

branch: master
commit 62bc04f4c5b4369cc493ff24b1de27aabd79e0c6
Author: Werner Lemberg <wl@gnu.org>
Commit: Werner Lemberg <wl@gnu.org>

    * src/sfnt/sfobjs.c (sfnt_load_face): Set `FT_FACE_FLAG_COLOR` for SVG 
fonts.
    
    Fixes #1151.
---
 src/sfnt/sfobjs.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/sfnt/sfobjs.c b/src/sfnt/sfobjs.c
index 35d3d6c78..a0da984e7 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 )



reply via email to

[Prev in Thread] Current Thread [Next in Thread]