Commit 7e1b8410 authored by Behdad Esfahbod's avatar Behdad Esfahbod

Minor

parent 01f14de4
......@@ -1764,13 +1764,21 @@ FcFreeTypeQueryFace (const FT_Face face,
lower_size = os2->usLowerOpticalPointSize / 20.0L;
upper_size = os2->usUpperOpticalPointSize / 20.0L;
r = FcRangeCreateDouble (lower_size, upper_size);
if (!FcPatternAddRange (pat, FC_SIZE, r))
if (lower_size == upper_size)
{
if (!FcPatternAddDouble (pat, FC_SIZE, lower_size))
goto bail1;
}
else
{
r = FcRangeCreateDouble (lower_size, upper_size);
if (!FcPatternAddRange (pat, FC_SIZE, r))
{
FcRangeDestroy (r);
goto bail1;
}
FcRangeDestroy (r);
goto bail1;
}
FcRangeDestroy (r);
}
#endif
......
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