Test the edge cases for getIndexFromOffset, where the point is at the edge of glyph and at the midpoint.