fix FindClosestGlyph for huge glyphs (cf. issue 2230)