summaryrefslogtreecommitdiff
path: root/src/fcfreetype.c
diff options
context:
space:
mode:
authorAkira TAGOH <akira@tagoh.org>2020-04-03 19:44:00 +0900
committerAkira TAGOH <akira@tagoh.org>2020-09-16 13:40:48 +0900
commitc78e7fd6deea835a522a89b3ae9ecc4fb1a2b672 (patch)
treef4e567e6120b40d58095bfbad6df55a2a77bf7d8 /src/fcfreetype.c
parent0f9040406cae2b3c574110acd925867c4a987a37 (diff)
downloadfontconfig-c78e7fd6deea835a522a89b3ae9ecc4fb1a2b672.tar.gz
Add fullname later once FcConfigSubstitute() is done
So user's changes in family and style will be reflected into fullname.
Diffstat (limited to 'src/fcfreetype.c')
-rw-r--r--src/fcfreetype.c57
1 files changed, 0 insertions, 57 deletions
diff --git a/src/fcfreetype.c b/src/fcfreetype.c
index 672c33a..0001f38 100644
--- a/src/fcfreetype.c
+++ b/src/fcfreetype.c
@@ -1666,63 +1666,6 @@ FcFreeTypeQueryFaceInternal (const FT_Face face,
++nfamily;
}
- /* Add the fullname into the cache */
- if (!variable)
- {
- FcChar8 *family, *style, *lang;
- int n = 0;
- size_t len, i;
- FcStrBuf sbuf;
-
- while (FcPatternObjectGetString (pat, FC_FAMILYLANG_OBJECT, n, &lang) == FcResultMatch)
- {
- if (FcStrCmp (lang, (const FcChar8 *) "en") == 0)
- break;
- n++;
- lang = NULL;
- }
- if (!lang)
- n = 0;
- if (FcPatternObjectGetString (pat, FC_FAMILY_OBJECT, n, &family) != FcResultMatch)
- goto bail1;
- len = strlen ((const char *) family);
- for (i = len; i > 0; i--)
- {
- if (!isspace (family[i]))
- break;
- }
- family[i] = 0;
- while (FcPatternObjectGetString (pat, FC_STYLELANG_OBJECT, n, &lang) == FcResultMatch)
- {
- if (FcStrCmp (lang, (const FcChar8 *) "en") == 0)
- break;
- n++;
- lang = NULL;
- }
- if (!lang)
- n = 0;
- if (FcPatternObjectGetString (pat, FC_STYLE_OBJECT, n, &style) != FcResultMatch)
- goto bail1;
- len = strlen ((const char *) style);
- for (i = 0; style[i] != 0 && isspace (style[i]); i++)
- break;
- memcpy (style, &style[i], len - i);
- FcStrBufInit (&sbuf, NULL, 0);
- FcStrBufString (&sbuf, family);
- if (FcStrCmpIgnoreBlanksAndCase(style, (const FcChar8 *) "Regular") != 0)
- {
- FcStrBufChar (&sbuf, ' ');
- FcStrBufString (&sbuf, style);
- }
- if (!FcPatternObjectAddString (pat, FC_FULLNAME_OBJECT, FcStrBufDoneStatic (&sbuf)))
- {
- FcStrBufDestroy (&sbuf);
- goto bail1;
- }
- FcStrBufDestroy (&sbuf);
- if (!FcPatternObjectAddString (pat, FC_FULLNAMELANG_OBJECT, (const FcChar8 *) "en"))
- goto bail1;
- }
/* Add the PostScript name into the cache */
if (!variable)
{