1
0

Various build pipeline fixes

- Copy copyright information
- Copy version number
- Use correct weight information for output files
This commit is contained in:
2026-03-02 11:42:05 +01:00
parent 379400d875
commit a551d8e85c
8 changed files with 169 additions and 8 deletions

24
scripts/version.py Normal file
View File

@@ -0,0 +1,24 @@
"""
FontForge: Set font version
────────────────────────────
Sets the font version from a VERSION variable injected by build.py.
Run inside FontForge (or via build.py which sets `f` and `VERSION` before running this).
"""
import fontforge
f = fontforge.activeFont()
# VERSION is injected by build.py before this script runs
# e.g. VERSION = "1.0"
version_str = "Version " + VERSION
f.version = VERSION
f.sfntRevision = float(VERSION)
f.appendSFNTName("English (US)", "Version", version_str)
print(f" Version set to: {version_str}")
print(f" head.fontRevision set to: {float(VERSION)}")
print("Done.")