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,13 +1639,8 @@ FcFreeTypeQueryFace (const FT_Face face,
for (i = 0; i < face->num_fixed_sizes; i++) for (i = 0; i < face->num_fixed_sizes; i++)
{ {
double d = FcGetPixelSize (face, i); double d = FcGetPixelSize (face, i);
r = FcRangeCreateDouble (d, d); if (!FcPatternAddDouble (pat, FC_SIZE, d))
if (!FcPatternAddRange (pat, FC_SIZE, r))
{
FcRangeDestroy (r);
goto bail1; goto bail1;
}
FcRangeDestroy (r);
} }
} }