Method IsArbitraryFontClass
- Namespace
- Velvet
- Assembly
- Velvet.Docs.dll
IsArbitraryFontClass(string)
True when cls is an arbitrary font class (font-[…]). These are owned
by StyleFontResolver (resolved from the whole class array and applied as inline
style), so the reconciler must keep them out of the USS class list — unlike the non-bracket
font classes (font-bold, font-sans, …) which stay in the list as the USS fallback.
Single source of truth for the AddClass / RemoveClass / ApplyClassNames exclusion checks.
public static bool IsArbitraryFontClass(string cls)
Parameters
clsstring
Returns
- bool