diff --git a/fonts/alte-din-1451-mittelschrift.gepraegt.ttf b/fonts/alte-din-1451-mittelschrift.gepraegt.ttf new file mode 100644 index 0000000..c7e9034 Binary files /dev/null and b/fonts/alte-din-1451-mittelschrift.gepraegt.ttf differ diff --git a/fonts/alte-din-1451-mittelschrift.regular.ttf b/fonts/alte-din-1451-mittelschrift.regular.ttf new file mode 100644 index 0000000..aef931a Binary files /dev/null and b/fonts/alte-din-1451-mittelschrift.regular.ttf differ diff --git a/web/app.py b/web/app.py index c6d9c51..101a60c 100644 --- a/web/app.py +++ b/web/app.py @@ -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']) _FONT_LABELS = { - 'GOST_2.30481_type_A': 'GOST Type A', - 'GOST_2.30481_type_A_Bold': 'GOST Type A Bold', - 'Gost2.30481TypeB': 'GOST Type B', - 'ISOCPEUR': 'ISOCPEUR', - 'SIEMENS_GOST_Type_A': 'Siemens GOST Type A', - 'TGL_31034-1': 'TGL 31 034', + 'GOST_2.30481_type_A': 'GOST Type A', + 'GOST_2.30481_type_A_Bold': 'GOST Type A Bold', + 'Gost2.30481TypeB': 'GOST Type B', + 'ISOCPEUR': 'ISOCPEUR', + 'SIEMENS_GOST_Type_A': 'Siemens GOST Type A', + '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() -_DEFAULT_FONT = 'GOST_2.30481_type_A' +_DEFAULT_FONT = 'alte-din-1451-mittelschrift.regular' # SVG absolute coordinate constants (1 user unit = 1 mm) ZERO_X = 60.844130