Fix the issue fail to obtain the style name
The number of a couple of 'family' and 'familylang' and 'style' and 'stylelang' is different. need to reset the counter to get the property regarding to regarding to the lang. Fixes https://gitlab.freedesktop.org/fontconfig/fontconfig/-/issues/303
This commit is contained in:
parent
ce00010b1f
commit
92fbf14b0d
|
@ -1705,6 +1705,7 @@ FcFreeTypeQueryFaceInternal (const FT_Face face,
|
|||
break;
|
||||
}
|
||||
family[i] = 0;
|
||||
n = 0;
|
||||
while (FcPatternObjectGetString (pat, FC_STYLELANG_OBJECT, n, &lang) == FcResultMatch)
|
||||
{
|
||||
if (FcStrCmp (lang, (const FcChar8 *) "en") == 0)
|
||||
|
|
Loading…
Reference in New Issue