[otlLib] "Hide" internal function
This commit is contained in:
parent
9727318680
commit
5ea2acad56
@ -24,7 +24,7 @@ def buildAlternateSubst(mapping):
|
||||
return self
|
||||
|
||||
|
||||
def getLigatureKey(components):
|
||||
def _getLigatureKey(components):
|
||||
"""Computes a key for ordering ligatures in a GSUB Type-4 lookup.
|
||||
|
||||
When building the OpenType lookup, we need to make sure that
|
||||
@ -44,7 +44,7 @@ def buildLigatureSubst(mapping):
|
||||
# with fontTools >= 3.1:
|
||||
# self.ligatures = dict(mapping)
|
||||
self.ligatures = {}
|
||||
for components in sorted(mapping.keys(), key=getLigatureKey):
|
||||
for components in sorted(mapping.keys(), key=_getLigatureKey):
|
||||
ligature = ot.Ligature()
|
||||
ligature.Component = components[1:]
|
||||
ligature.CompCount = len(components)
|
||||
|
Loading…
x
Reference in New Issue
Block a user