MCPcopy Index your code
hub / github.com/larsenwork/monoid / DropCAltAndLiga

Function DropCAltAndLiga

Scripts/fontbuilder.py:160–167  ·  view source on GitHub ↗

Removes Contextual Alternates and Ligatures

()

Source from the content-addressed store, hash-verified

158 return swaplookup_op
159
160def DropCAltAndLiga():
161 """Removes Contextual Alternates and Ligatures"""
162 def dropcaltandliga_op(fnt):
163 for lookup in fnt.gsub_lookups:
164 if fnt.getLookupInfo(lookup)[0] in ['gsub_ligature', 'gsub_contextchain']:
165 fnt.removeLookup(lookup)
166
167 return dropcaltandliga_op
168
169def Variation(name):
170 """Changes the subfamily/variation of the font"""

Callers 1

build.pyFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected