Class UIFontAsset
- Namespace
- Forma
- Assembly
- Forma.DynamicText.dll
public sealed class UIFontAsset
- Inheritance
-
UIFontAsset
- Inherited Members
-
Properties
public int FaceCount { get; }
Property Value
- int
public int FaceIndex { get; }
Property Value
- int
public string FamilyName { get; }
Property Value
- string
public string StyleName { get; }
Property Value
- string
public IReadOnlyList<UIFontVariationAxis> VariationAxes { get; }
Property Value
- IReadOnlyList<UIFontVariationAxis>
Methods
public UIFontFace CreateFace()
Returns
- UIFontFace
public static UIFontAsset FromMemory(ReadOnlyMemory<byte> source, int faceIndex = 0)
Parameters
source ReadOnlyMemory<byte>
faceIndex int
Returns
- UIFontAsset
public static UIFontAsset FromProjectFile(string projectDirectory, string relativePath, int faceIndex = 0)
Parameters
projectDirectory string
relativePath string
faceIndex int
Returns
- UIFontAsset
public static UIFontAsset FromStream(Stream source, int faceIndex = 0)
Parameters
source Stream
faceIndex int
Returns
- UIFontAsset
public Stream OpenStream()
Returns
- Stream