Add bitmap-only font size as Double, not Range
The whole size setting part still smells to me.
This commit is contained in:
parent
51756aab18
commit
cb2f096e15
|
@ -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);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue