Egui::FontCuts
Constants
Glued short codes ("Ubuntu-R.ttf") → long form before lookup.
Trailing style words stripped off a legacy family name: "Noto Sans Thin" → "Noto Sans"; width families ("Noto Sans ExtraCondensed") stay their own family, like Google's. At least one word always remains.
Filename token → {prettified slot name, CSS weight}.
Class methods
The family's ROMAN weight axis — distinct weights, 100→900. Empty when the family is unknown (nothing installed under it).
CSS font matching (simplified): the exact slot when it exists, else the NEAREST — ties break towards 400 (heavier side when the target is above 400, lighter side below). Italic cuts never match a roman target (the italic machinery owns slant).
Parse the post-dash filename token into a Cut: "BoldItalic" → Bold 700 Italic, "Italic" → Regular 400 Italic, "SemiBold" → SemiBold 600 roman, "ExtraCondensedBold" → known: false (a width shape, not a weight slot — it keeps its prettified token label).
The deferred-stack family name for one cut file — unique per path, can't collide with catalog family names.
The style segment of a font filename: after the last '-' ("NotoSans-BoldItalic.ttf" → "BoldItalic", "Ubuntu-R.ttf" → "R"); no dash at all → "" (the whole base is the family name).