Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions main.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
import xml.etree.ElementTree as ET
from pathlib import Path

from PIL import Image, ImageOps
from PIL import Image
import vtracer
from fontTools.ttLib import TTFont
from fontTools.pens.basePen import AbstractPen
Expand Down Expand Up @@ -331,7 +331,7 @@ def add_ligature(font: TTFont, sequence: str, glyph_name: str) -> None:
if first_glyph in subtable.ligatures:
subtable.ligatures[first_glyph].append(lig)
subtable.ligatures[first_glyph].sort(
key=lambda l: len(l.Component), reverse=True
key=lambda _lig: len(_lig.Component), reverse=True
)
else:
subtable.ligatures[first_glyph] = [lig]
Expand Down
Loading