Class VelvetFontFamily
- Namespace
- Velvet
- Assembly
- Velvet.Docs.dll
A named font family — the Velvet counterpart of a font-family entry. A family
owns one or more VelvetFontWeightEntry slots keyed by VelvetFontWeight,
and is selected through the font-<name> utility class (e.g. font-sans →
the family named "sans").
Multilingual (CJK / fallback) coverage is a property of the Font Assets themselves: configure the local fallback table on the Font Asset, or the global fallback list on the panel's UITK Text Settings. Velvet only selects which family/weight asset to assign — TextCore performs the per-glyph fallback at render time.
[Serializable]
public sealed class VelvetFontFamily
- Inheritance
-
objectVelvetFontFamily
Constructors
Fields
Methods
- FindClosestWeight(VelvetFontWeight)
Picks the entry whose weight is closest to
requested. Ties resolve to the heavier entry (matching CSS, which rounds a midpoint up). Returns null only when the family has no entries.