Class LabelVariantScale
Maps LabelVariant to a size multiplier and a default weight.
public static class LabelVariantScale
- Inheritance
-
objectLabelVariantScale
Methods
DefaultWeight(LabelVariant)
Default weight for a variant: Normal for Body, Bold for headings.
public static LabelWeight DefaultWeight(LabelVariant v)
Parameters
vLabelVariantThe typographic step.
Returns
- LabelWeight
The weight used when the caller does not set one.
Remarks
Explicit weights on SetLabel override this default.
Multiplier(LabelVariant)
Size multiplier relative to the layer's base label size.
public static float Multiplier(LabelVariant v)
Parameters
vLabelVariantThe typographic step.
Returns
- float
Unitless scale, 1.0 for Body through 2.0 for H1.