fontlabapp.fonts.style_names
style_names
Detached naming rules from Resistenza ShortNames and StyleLinker.
Callers resolve eligible static instances and typographic family precedence. This module does not invent native instance fields, change family/style names, write fonts or implement the original editable panels. Native adapters remain pending. Preserve original case, tokenization and confirmation warnings.
Classes
Complete member index
Every captured member retains its own identity. Identical captured declaration text is linked once; this does not establish native inheritance or interchangeable objects.
| Member | Kind | Signature | Summary |
|---|---|---|---|
ABBREVIATIONS |
attribute | ||
prepare_names |
function | (values: tuple[object, ...]) -> NameEdits |
Retain source str/strip, warning order and 29-character advisory limit. |
propose_ps_name |
function | (resolved_family: str, style: str) -> str |
Join caller-resolved typographic family and abbreviated style exactly. |
shorten_style |
function | (style: str) -> str |
Apply all 29 case-sensitive abbreviations; empty output becomes Rg. |
split_style_words |
function | (name: str) -> tuple[str, ...] |
Keep source ASCII-regex behavior, including punctuation/accent quirks. |
style_link |
function | (style: str, available_styles: Collection[str]) -> Link | None |
Use whole-word Bold/Italic/Oblique and the original bold-base fallback. |