- Copy copyright information - Copy version number - Use correct weight information for output files
22 lines
611 B
Python
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.")
|