Skip to content

fontlabapp.fonts.style_names · declarations 001

Back to fontlabapp.fonts.style_names

ABBREVIATIONS module-attribute

ABBREVIATIONS

prepare_names

prepare_names(values: tuple[object, ...]) -> NameEdits

Retain source str/strip, warning order and 29-character advisory limit.

These warnings do not silently veto the source's Apply-anyway interaction. A future native adapter must separately prove representability before writes.

propose_ps_name

propose_ps_name(resolved_family: str, style: str) -> str

Join caller-resolved typographic family and abbreviated style exactly.

shorten_style

shorten_style(style: str) -> str

Apply all 29 case-sensitive abbreviations; empty output becomes Rg.

split_style_words

split_style_words(name: str) -> tuple[str, ...]

Keep source ASCII-regex behavior, including punctuation/accent quirks.

style_link(style: str, available_styles: Collection[str]) -> Link | None

Use whole-word Bold/Italic/Oblique and the original bold-base fallback.