Skip to content

Commit 0f45c47

Browse files
committed
Add Leipzig check and special mapping for space character
* Use 0200 as space code in supported glyphs * Because space is coded as ' ' in the SVG we need to map it to 0200
1 parent 84d2733 commit 0f45c47

File tree

3 files changed

+5
-1
lines changed

3 files changed

+5
-1
lines changed

fonts/generate.py

+3
Original file line numberDiff line numberDiff line change
@@ -319,6 +319,9 @@ def check(opts: Namespace) -> bool:
319319
glyph_names: list[str] = []
320320
for g in glyphs:
321321
if g is not None and (gn := g.get("glyph-name")):
322+
# space is not given as octal in svg fonts
323+
if gn == "space":
324+
gn = "0020"
322325
glyph_names.append(gn[-4:] if gn.startswith("uni") else gn)
323326

324327
supported_codes: set = set(all_glyphs.keys())

fonts/generate_all.sh

+1
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ $PYTHON generate.py extract Bravura
1313
$PYTHON generate.py css Bravura
1414

1515
echo "Generating Leipzig files ..."
16+
$PYTHON generate.py check Leipzig
1617
$PYTHON generate.py extract Leipzig
1718
$PYTHON generate.py css Leipzig
1819

fonts/supported.xml

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
<smufl>
33
<standardUnicodePoints>
44
<description>Standard Unicode Points (added by hand)</description>
5-
<glyph glyph-code=" " smufl-name="space"/>
5+
<glyph glyph-code="0020" smufl-name="space"/>
66
<glyph glyph-code="266D" smufl-name="musicFlatSign"/>
77
<glyph glyph-code="266E" smufl-name="musicNaturalSign"/>
88
<glyph glyph-code="266F" smufl-name="musicSharpSign"/>

0 commit comments

Comments
 (0)