def character_index(self, character): try: return self._ordinals[character] except KeyError: self._ordinals[character] = i = hb.font_get_glyph( self._hb_font, ord(character), 0)[1] return i
def character_index(self, character): try: return self._ordinals[character] except KeyError: self._ordinals[character] = i = hb.font_get_glyph(self._hb_font, ord(character), 0)[1] return i
def _hb_get_advance(hb_font, char): return hb.font_get_glyph_h_advance( hb_font, hb.font_get_glyph(hb_font, ord(char), 0)[1])
def _hb_get_advance(hb_font, char): return hb.font_get_glyph_h_advance(hb_font, hb.font_get_glyph(hb_font, ord(char), 0)[1])