summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAkira TAGOH <tagoh@redhat.com>2021-12-09 20:26:10 +0900
committerAkira TAGOH <tagoh@redhat.com>2021-12-09 20:26:10 +0900
commit92fbf14b0d7c4737ffe1e8326b7ab8ffae5548c3 (patch)
tree0771b5d52d25c7212b8097f7bb19c1f549261e9d
parentce00010b1fadffccd2ba94d2b1932d4f5ff38f8e (diff)
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
-rw-r--r--src/fcfreetype.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/fcfreetype.c b/src/fcfreetype.c
index b6bfaca..e7a359f 100644
--- a/src/fcfreetype.c
+++ b/src/fcfreetype.c
@@ -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)