From 48e9e5f4f0e97b12f7923662e06820c7077ae8af Mon Sep 17 00:00:00 2001 From: Behdad Esfahbod Date: Mon, 16 Jul 2018 17:59:45 +0200 Subject: [PATCH] Use FT_HAS_COLOR --- src/fcfreetype.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/fcfreetype.c b/src/fcfreetype.c index 6af1c51..3924104 100644 --- a/src/fcfreetype.c +++ b/src/fcfreetype.c @@ -1267,7 +1267,7 @@ FcFreeTypeQueryFaceInternal (const FT_Face face, if (!FcPatternAddBool (pat, FC_OUTLINE, has_outline)) goto bail1; - has_color = !!(face->face_flags & FT_FACE_FLAG_COLOR); + has_color = FT_HAS_COLOR (face); if (!FcPatternAddBool (pat, FC_COLOR, has_color)) goto bail1;