Class DynamicUIFont

Namespace
Forma
Assembly
Forma.DynamicText.dll
public sealed class DynamicUIFont : UIFont, IEquatable<UIFont>
Inheritance
DynamicUIFont
Implements
Inherited Members

Constructors

DynamicUIFont(UIFontFace, float, UIFontHinting, params UIFontFace[])

public DynamicUIFont(UIFontFace face, float size, UIFontHinting hinting = UIFontHinting.Default, params UIFontFace[] fallbackFaces)

Parameters

face UIFontFace
size float
hinting UIFontHinting
fallbackFaces UIFontFace[]

DynamicUIFont(UIFontFace, float, UIFontHinting, IReadOnlyList<UIFontVariationCoordinate>, params UIFontFace[])

public DynamicUIFont(UIFontFace face, float size, UIFontHinting hinting, IReadOnlyList<UIFontVariationCoordinate> variationCoordinates, params UIFontFace[] fallbackFaces)

Parameters

face UIFontFace
size float
hinting UIFontHinting
variationCoordinates IReadOnlyList<UIFontVariationCoordinate>
fallbackFaces UIFontFace[]

DynamicUIFont(UIFontFace, float, UIFontWeight, UIFontHinting, params UIFontFace[])

Creates a dynamic font at size with a semantic weight, optional hinting and fallback faces.

public DynamicUIFont(UIFontFace face, float size, UIFontWeight weight, UIFontHinting hinting = UIFontHinting.Default, params UIFontFace[] fallbackFaces)

Parameters

face UIFontFace
size float
weight UIFontWeight
hinting UIFontHinting
fallbackFaces UIFontFace[]

DynamicUIFont(UIFontFace, float, UIFontWeight, UIFontHinting, IReadOnlyList<UIFontVariationCoordinate>, params UIFontFace[])

Creates a dynamic font with a semantic weight, hinting, explicit variation coordinates and fallback faces.

public DynamicUIFont(UIFontFace face, float size, UIFontWeight weight, UIFontHinting hinting, IReadOnlyList<UIFontVariationCoordinate> variationCoordinates, params UIFontFace[] fallbackFaces)

Parameters

face UIFontFace
size float
weight UIFontWeight
hinting UIFontHinting
variationCoordinates IReadOnlyList<UIFontVariationCoordinate>
fallbackFaces UIFontFace[]

Properties

Face

public UIFontFace Face { get; }

Property Value

UIFontFace

FallbackFaces

public IReadOnlyList<UIFontFace> FallbackFaces { get; }

Property Value

IReadOnlyList<UIFontFace>

Hinting

public UIFontHinting Hinting { get; }

Property Value

UIFontHinting

Synthesis

Glyph outline synthesis (fake bold or oblique) applied when the face has no matching real variant.

public UIFontSynthesis Synthesis { get; }

Property Value

UIFontSynthesis

VariationCoordinates

public IReadOnlyList<UIFontVariationCoordinate> VariationCoordinates { get; }

Property Value

IReadOnlyList<UIFontVariationCoordinate>

Methods

WithSynthesis(UIFontSynthesis)

Returns this font with synthesized bold and/or oblique glyph outlines, including fallback faces.

public DynamicUIFont WithSynthesis(UIFontSynthesis synthesis)

Parameters

synthesis UIFontSynthesis

Returns

DynamicUIFont