Ligaturizer icon indicating copy to clipboard operation
Ligaturizer copied to clipboard

EnvironmentError: A lookup named lookup.1.0 already exists

Open KishinZW opened this issue 4 years ago • 1 comments

I use WSL Ubuntu 18.04.2 LTS bionic, got this error:

Traceback (most recent call last):
  File "build.py", line 105, in <module>
    scale_character_glyphs_threshold=SCALE_CHARACTER_GLYPHS_THRESHOLD)
  File "/home/dell/Ligaturizer/ligaturize.py", line 275, in ligaturize_font
    creator.add_ligature(lig_spec['chars'], lig_spec['firacode_ligature_name'])
  File "/home/dell/Ligaturizer/ligaturize.py", line 158, in add_ligature
    self.font.addLookup(lookup_name(i), 'gsub_single', (), ())
EnvironmentError: A lookup named lookup.1.0 already exists  

The font I tried to ligaturize is Droid Sans Mono Nerd Font Complete Windows Compatible.

KishinZW avatar Mar 24 '20 08:03 KishinZW

if you have added your font name to renamed_font then comment that, then this will work

tarunzoot avatar Aug 21 '21 11:08 tarunzoot