Skip to content

Commit

Permalink
do not consider 'w' character for CCG features
Browse files Browse the repository at this point in the history
  • Loading branch information
gaplo917 committed Jan 31, 2020
1 parent 92dd7f2 commit 8a07151
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion ligatures.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,11 @@ def ligature_to_def(ligature):
return defs


# 'w' should not be copied to target fonts although there is a ligatures 'www' in FIRA Code
chars = list(filter(lambda c: c != 'w', char_dict.keys()))

# 'COPY_CHARACTER_GLYPHS' feature required to prepend the punctuations characters
ligatures = [{'chars': list(char_dict.keys()), 'ligature_name': None}] \
ligatures = [{'chars': chars, 'ligature_name': None}] \
+ create_ligatures_def(pattern ='fonts/fira/showcases/showcases.txt')

print("Definitions:", ligatures)

0 comments on commit 8a07151

Please sign in to comment.