Use FT_HAS_COLOR

This commit is contained in:
Behdad Esfahbod 2018-07-16 17:59:45 +02:00
parent 5a46d572c0
commit 48e9e5f4f0
1 changed files with 1 additions and 1 deletions

View File

@ -1267,7 +1267,7 @@ FcFreeTypeQueryFaceInternal (const FT_Face face,
if (!FcPatternAddBool (pat, FC_OUTLINE, has_outline)) if (!FcPatternAddBool (pat, FC_OUTLINE, has_outline))
goto bail1; goto bail1;
has_color = !!(face->face_flags & FT_FACE_FLAG_COLOR); has_color = FT_HAS_COLOR (face);
if (!FcPatternAddBool (pat, FC_COLOR, has_color)) if (!FcPatternAddBool (pat, FC_COLOR, has_color))
goto bail1; goto bail1;