Add DIN 1451 fonts as default; drop stray Zone.Identifier files

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
This commit is contained in:
2026-07-28 23:38:16 +02:00
parent 9e3af69d38
commit 845c3ec4d4
3 changed files with 9 additions and 7 deletions
Binary file not shown.
Binary file not shown.
+9 -7
View File
@@ -17,12 +17,14 @@ _LOGO_B64 = base64.b64encode(_LOGO_PATH.read_bytes()).decode()
_FontData = namedtuple('_FontData', ['key', 'label', 'b64', 'glyph_set', 'cmap', 'hmtx', 'upm', 'glyf']) _FontData = namedtuple('_FontData', ['key', 'label', 'b64', 'glyph_set', 'cmap', 'hmtx', 'upm', 'glyf'])
_FONT_LABELS = { _FONT_LABELS = {
'GOST_2.30481_type_A': 'GOST Type A', 'GOST_2.30481_type_A': 'GOST Type A',
'GOST_2.30481_type_A_Bold': 'GOST Type A Bold', 'GOST_2.30481_type_A_Bold': 'GOST Type A Bold',
'Gost2.30481TypeB': 'GOST Type B', 'Gost2.30481TypeB': 'GOST Type B',
'ISOCPEUR': 'ISOCPEUR', 'ISOCPEUR': 'ISOCPEUR',
'SIEMENS_GOST_Type_A': 'Siemens GOST Type A', 'SIEMENS_GOST_Type_A': 'Siemens GOST Type A',
'TGL_31034-1': 'TGL 31 034', 'TGL_31034-1': 'TGL 31 034',
'alte-din-1451-mittelschrift.regular': 'Alte DIN 1451 Mittelschrift',
'alte-din-1451-mittelschrift.gepraegt': 'Alte DIN 1451 Mittelschrift (Gepraegt)',
} }
@@ -48,7 +50,7 @@ def _load_fonts():
_FONTS = _load_fonts() _FONTS = _load_fonts()
_DEFAULT_FONT = 'GOST_2.30481_type_A' _DEFAULT_FONT = 'alte-din-1451-mittelschrift.regular'
# SVG absolute coordinate constants (1 user unit = 1 mm) # SVG absolute coordinate constants (1 user unit = 1 mm)
ZERO_X = 60.844130 ZERO_X = 60.844130