Commit 1e0c692d authored by Akira TAGOH's avatar Akira TAGOH

Fix unexpected matching string on FcFontList()

parent e6fba599
Pipeline #56572 passed with stage
in 6 minutes and 14 seconds
......@@ -59,8 +59,12 @@ FcCompareNumber (const FcValue *value1, const FcValue *value2, FcValue *bestValu
static double
FcCompareString (const FcValue *v1, const FcValue *v2, FcValue *bestValue)
double ret;
*bestValue = FcValueCanonicalize (v2);
return (double) FcStrCmpIgnoreCase (FcValueString(v1), FcValueString(v2)) != 0;
ret = ((double) FcStrCmpIgnoreCase (FcValueString(v1), FcValueString(v2)) != 0) * 2.0;
return ret;
static inline FcBool fc_iszero(double a) { return fabs (a) <= DBL_EPSILON; }
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment