Config¶
config
¶
Project settings shared by the FontForge build and the uv tools.
Standard library only: FontForge's embedded Python and the uv environment both import this module.
FAMILY = 'Automata Mono'
module-attribute
¶
POSTSCRIPT_FAMILY = 'AutomataMono'
module-attribute
¶
VERSION = '1.000'
module-attribute
¶
VENDOR_ID = 'UKWN'
module-attribute
¶
URL = 'https://github.com/nanxstats/automata-mono'
module-attribute
¶
UPSTREAM_FAMILY = 'Roboto Mono'
module-attribute
¶
UPSTREAM_POSTSCRIPT_FAMILY = 'RobotoMono'
module-attribute
¶
WEIGHTS = {'Thin': 100, 'Light': 300, 'Regular': 400, 'Medium': 500, 'Bold': 700}
module-attribute
¶
STYLES = tuple(('Italic' if weight == 'Regular' else weight + 'Italic') if italic else weight for weight in WEIGHTS for italic in (False, True))
module-attribute
¶
FIRA_WEIGHTS = {'Thin': 'Light', 'Light': 'Light', 'Regular': 'Regular', 'Medium': 'Medium', 'Bold': 'SemiBold'}
module-attribute
¶
EXCLUDED_LIGATURES = frozenset(('&&', '~@', '\\/', '.?', '?:', '?=', '?.', '??', ';;', '/\\', 'www'))
module-attribute
¶
MISSING_FIRA_LIGATURES = frozenset(('~=',))
module-attribute
¶
split_style(style)
¶
Return (weight, italic) for an upstream style name.
upstream_font(roboto_dir, style)
¶
fira_font(ligaturizer_dir, style)
¶
output_name(style)
¶
style_names(style, family=FAMILY, postscript_family=POSTSCRIPT_FAMILY)
¶
Name IDs 1, 2, 4, 6, 16, 17 following upstream's Google Fonts scheme.
Regular, Italic, Bold, and Bold Italic form the legacy four-style family. Other weights get their own legacy family plus typographic names.
load_ligature_specs(ligaturizer_dir)
¶
Map ligature text (e.g. "->") to Ligaturizer's spec, minus exclusions.
Ligaturizer's ligatures.py and char_dict.py are plain data modules. Append (not prepend) their directory: Ligaturizer also ships a stat.py that would shadow the standard library module.