X-Git-Url: https://git.wh0rd.org/?a=blobdiff_plain;f=src%2Ffcfreetype.c;h=572e7f2a05925dee6624156c29886a165275652d;hb=4ee9ca67867ec9517c90d6947bb88d3f25707746;hp=3265a3879b7f9235e9421024e4580f0fa2c9c2ed;hpb=349182784fdd0acf5d1262d8876c967f69dc30aa;p=fontconfig.git diff --git a/src/fcfreetype.c b/src/fcfreetype.c index 3265a38..572e7f2 100644 --- a/src/fcfreetype.c +++ b/src/fcfreetype.c @@ -959,8 +959,18 @@ FcStringContainsConst (const FcChar8 *string, int i; for (i = 0; i < nc; i++) - if (FcStrContainsIgnoreBlanksAndCase (string, c[i].name)) - return c[i].value; + { + if (c[i].name[0] == '<') + { + if (FcStrContainsWord (string, c[i].name + 1)) + return c[i].value; + } + else + { + if (FcStrContainsIgnoreBlanksAndCase (string, c[i].name)) + return c[i].value; + } + } return -1; } @@ -985,6 +995,7 @@ static const FcStringConst weightConsts[] = { { (FC8) "ultrablack", FC_WEIGHT_ULTRABLACK }, { (FC8) "superblack", FC_WEIGHT_EXTRABLACK }, { (FC8) "extrablack", FC_WEIGHT_EXTRABLACK }, + { (FC8) "