Removes Contextual Alternates and Ligatures
()
| 158 | return swaplookup_op |
| 159 | |
| 160 | def 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 | |
| 169 | def Variation(name): |
| 170 | """Changes the subfamily/variation of the font""" |