Remove unnecessary check

Argument advance is never set to NULL coming into this function.
This commit is contained in:
Behdad Esfahbod 2017-08-04 14:59:26 +01:00
parent 5f6c0594f9
commit e517886ded
1 changed files with 2 additions and 5 deletions

View File

@ -2219,11 +2219,8 @@ FcFreeTypeCheckGlyph (FT_Face face,
if (face->face_flags & FT_FACE_FLAG_SCALABLE) if (face->face_flags & FT_FACE_FLAG_SCALABLE)
load_flags |= FT_LOAD_NO_BITMAP; load_flags |= FT_LOAD_NO_BITMAP;
if (advance)
{
*advance = 0; *advance = 0;
FT_Get_Advance (face, glyph, load_flags, advance); FT_Get_Advance (face, glyph, load_flags, advance);
}
/* CID fonts built by Adobe used to make ASCII control chars to cid1 /* CID fonts built by Adobe used to make ASCII control chars to cid1
* (space glyph). As such, always check contour for those characters. */ * (space glyph). As such, always check contour for those characters. */