better glyph offset computation