Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
def test_ot_layout_language_get_feature_tags(self, blankfont):
tags = hb.ot_layout_language_get_feature_tags(blankfont.face, "GPOS")
assert tags == ['kern']
tags = hb.ot_layout_language_get_feature_tags(blankfont.face, "GSUB")
assert tags == ['calt']
def test_ot_layout_language_get_feature_tags(self, blankfont):
tags = hb.ot_layout_language_get_feature_tags(blankfont.face, "GPOS")
assert tags == ['kern']
tags = hb.ot_layout_language_get_feature_tags(blankfont.face, "GSUB")
assert tags == ['calt']
def features(self):
# XXX: for now we only list GSUB, default script, default language
return hb.ot_layout_language_get_feature_tags(self._hbFont.face, "GSUB")