Make sure a combination of family and familylang is available

This commit is contained in:
Akira TAGOH 2020-09-21 14:51:22 +09:00
parent 5a291467a7
commit dbef9d10de
1 changed files with 5 additions and 0 deletions

View File

@ -1675,6 +1675,11 @@ FcFreeTypeQueryFaceInternal (const FT_Face face,
free (family);
goto bail1;
}
if (!FcPatternObjectAddString (pat, FC_FAMILYLANG_OBJECT, (FcChar8 *) "en"))
{
free (family);
goto bail1;
}
free (family);
++nfamily;
}