1
0
Files
readerly/scripts/license.py
Nico Verbruggen a551d8e85c Various build pipeline fixes
- Copy copyright information
- Copy version number
- Use correct weight information for output files
2026-03-02 11:42:05 +01:00

22 lines
611 B
Python

"""
FontForge: Set copyright information
─────────────────────────────────────
Sets the copyright notice from COPYRIGHT_TEXT injected by build.py.
Run inside FontForge (or via build.py which sets `f` and `COPYRIGHT_TEXT` before running this).
"""
import fontforge
f = fontforge.activeFont()
# COPYRIGHT_TEXT is injected by build.py before this script runs
lang = "English (US)"
f.copyright = COPYRIGHT_TEXT
f.appendSFNTName(lang, "Copyright", COPYRIGHT_TEXT)
print(f" Copyright: {COPYRIGHT_TEXT.splitlines()[0]}")
print("Done.")