Skip to content

Commit 9f31f5d

Browse files
committed
fix nested components
1 parent 0f43f2a commit 9f31f5d

7 files changed

Lines changed: 393 additions & 24 deletions

File tree

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,3 +3,4 @@ sources/workdir
33
sources/output
44
.aider*
55
.venv
6+
__pycache__/

sitecustomize.py

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
"""
2+
Repository-local Python site customization.
3+
4+
We patch FontTools script metadata so FontBakery's glyphset language checks
5+
do not crash on newer gflanguages entries that reference the non-standard
6+
\"Berf\" script (Beria Erfe). The value is intentionally mapped to itself so
7+
glyphsets that rely on standard scripts will simply skip it.
8+
"""
9+
10+
from fontTools.unicodedata import Scripts
11+
12+
# Ensure unknown script code from gflanguages does not raise KeyError in glyphsets
13+
Scripts.NAMES.setdefault("Berf", "Berf")

0 commit comments

Comments
 (0)