Class UIFont
- Namespace
- Forma
- Assembly
- Forma.dll
public abstract class UIFont : IEquatable<UIFont>
- Inheritance
-
UIFont
- Implements
- Derived
- Inherited Members
Constructors
UIFont(UIFontIdentity, float, IReadOnlyList<UIFontOpenTypeFeature>, UIFontWeight, UIFontStyle, UIFontStretch)
protected UIFont(UIFontIdentity identity, float size, IReadOnlyList<UIFontOpenTypeFeature> defaultOpenTypeFeatures = null, UIFontWeight weight = UIFontWeight.Normal, UIFontStyle style = UIFontStyle.Normal, UIFontStretch stretch = UIFontStretch.Normal)
Parameters
identityUIFontIdentitysizefloatdefaultOpenTypeFeaturesIReadOnlyList<UIFontOpenTypeFeature>weightUIFontWeightstyleUIFontStylestretchUIFontStretch
Properties
DefaultOpenTypeFeatures
public IReadOnlyList<UIFontOpenTypeFeature> DefaultOpenTypeFeatures { get; }
Property Value
Identity
public UIFontIdentity Identity { get; }
Property Value
Size
public float Size { get; }
Property Value
Stretch
public UIFontStretch Stretch { get; }
Property Value
Style
public UIFontStyle Style { get; }
Property Value
Weight
public UIFontWeight Weight { get; }
Property Value
Methods
Equals(UIFont)
public bool Equals(UIFont other)
Parameters
otherUIFont
Returns
Equals(object)
public override bool Equals(object obj)
Parameters
objobject
Returns
GetHashCode()
public override int GetHashCode()
Returns
WithSize(float)
Returns this font at a different logical size.
public UIFont WithSize(float size)
Parameters
sizefloat