Table of Contents

Class LabelVariantScale

Namespace
LansMap.Core

Maps LabelVariant to a size multiplier and a default weight.

public static class LabelVariantScale
Inheritance
object
LabelVariantScale

Methods

DefaultWeight(LabelVariant)

Default weight for a variant: Normal for Body, Bold for headings.

public static LabelWeight DefaultWeight(LabelVariant v)

Parameters

v LabelVariant

The 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

v LabelVariant

The typographic step.

Returns

float

Unitless scale, 1.0 for Body through 2.0 for H1.