File: Chaining.py

package info (click to toggle)
python-fontfeatures 1.9.0%2Bds-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 2,096 kB
  • sloc: python: 9,112; makefile: 22
file content (11 lines) | stat: -rw-r--r-- 292 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
"""ttLib.Chaining: Converting Chaining rules to TrueType."""


def lookup_type(self):
    """Mixin to determine the GSUB/GPOS lookup type of a fontFeatures.Chaining object

    Returns: integer GSUB/GPOS lookup type."""
    if self.stage == "pos":
        return 8
    else:
        return 6