How to use the uharfbuzz.ot_layout_language_get_feature_tags function in uharfbuzz

To help you get started, we’ve selected a few uharfbuzz examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github harfbuzz / uharfbuzz / tests / test_uharfbuzz.py View on Github external
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']
github harfbuzz / uharfbuzz / tests / test_uharfbuzz.py View on Github external
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']
github trufont / trufont / src / trufont / objects / layoutEngine.py View on Github external
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")