[Fontconfig-bugs] [Bug 28491] Allow matching on FC_FILE
bugzilla-daemon at freedesktop.org
bugzilla-daemon at freedesktop.org
Sun Apr 8 20:02:40 PDT 2012
https://bugs.freedesktop.org/show_bug.cgi?id=28491
--- Comment #3 from Akira TAGOH <akira at tagoh.org> 2012-04-09 03:02:40 UTC ---
this may be redundancy but may be good to check the filename strictly and give
different score for them?
The idea looks like:
static double
FcCompareFilename (FcValue *v1, FcValue *v2)
{
const FcChar8 *s1 = FcValueString (v1), *s2 = FcValueString (v2);
if (FcStrCmp (s1, s2) == 0)
return 0.0;
else if (FcStrCmpIgnoreCase (s1, s2) == 0)
return 1.0;
else if (FcStrRegexCmp (s2, s1))
return 2.0;
else if (FcStrRegexCmpIgnoreCase (s2, s1))
return 3.0;
else
return 4.0;
}
--
Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
More information about the Fontconfig-bugs
mailing list