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
faceUIFontFacesizefloathintingUIFontHintingfallbackFacesUIFontFace[]
DynamicUIFont(UIFontFace, float, UIFontHinting, IReadOnlyList<UIFontVariationCoordinate>, params UIFontFace[])
public DynamicUIFont(UIFontFace face, float size, UIFontHinting hinting, IReadOnlyList<UIFontVariationCoordinate> variationCoordinates, params UIFontFace[] fallbackFaces)
Parameters
faceUIFontFacesizefloathintingUIFontHintingvariationCoordinatesIReadOnlyList<UIFontVariationCoordinate>fallbackFacesUIFontFace[]
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
faceUIFontFacesizefloatweightUIFontWeighthintingUIFontHintingfallbackFacesUIFontFace[]
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
faceUIFontFacesizefloatweightUIFontWeighthintingUIFontHintingvariationCoordinatesIReadOnlyList<UIFontVariationCoordinate>fallbackFacesUIFontFace[]
Properties
Face
public UIFontFace Face { get; }
Property Value
FallbackFaces
public IReadOnlyList<UIFontFace> FallbackFaces { get; }
Property Value
Hinting
public UIFontHinting Hinting { get; }
Property Value
Synthesis
Glyph outline synthesis (fake bold or oblique) applied when the face has no matching real variant.
public UIFontSynthesis Synthesis { get; }
Property Value
VariationCoordinates
public IReadOnlyList<UIFontVariationCoordinate> VariationCoordinates { get; }
Property Value
Methods
WithSynthesis(UIFontSynthesis)
Returns this font with synthesized bold and/or oblique glyph outlines, including fallback faces.
public DynamicUIFont WithSynthesis(UIFontSynthesis synthesis)
Parameters
synthesisUIFontSynthesis