def getLanguageList(self): self._updateEngine() # XXX: for now we only list GSUB, default script tags = self._hbFont.face.ot_layout.script_get_language_tags( hb.tag_from_string("GSUB"), 0) return [hb.tag_to_string(t) for t in tags]
def getFeatureList(self): self._updateEngine() # XXX: for now we only list GSUB, default script, default language tags = self._hbFont.face.ot_layout.language_get_feature_tags( hb.tag_from_string("GSUB"), 0, 0xFFFF) return [hb.tag_to_string(t) for t in tags]
def getScriptList(self): self._updateEngine() # XXX: for now we only list GSUB tags = self._hbFont.face.ot_layout.table_get_script_tags( hb.tag_from_string("GSUB")) return [hb.tag_to_string(t) for t in tags]