Add bitmap-only font size as Double, not Range

The whole size setting part still smells to me.
This commit is contained in:
Behdad Esfahbod 2014-07-04 16:18:52 -04:00
parent 51756aab18
commit cb2f096e15
1 changed files with 1 additions and 6 deletions

View File

@ -1639,14 +1639,9 @@ FcFreeTypeQueryFace (const FT_Face face,
for (i = 0; i < face->num_fixed_sizes; i++)
{
double d = FcGetPixelSize (face, i);
r = FcRangeCreateDouble (d, d);
if (!FcPatternAddRange (pat, FC_SIZE, r))
{
FcRangeDestroy (r);
if (!FcPatternAddDouble (pat, FC_SIZE, d))
goto bail1;
}
FcRangeDestroy (r);
}
}
/*