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,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);
|
||||
}
|
||||
}
|
||||
|
||||
/*
|
||||
|
|
Loading…
Reference in New Issue