Font3D
public class Font3D : ScriptableObjectGenerated source-outline companion for a TMP font. It contains only the exact font bytes and their provenance. Reusable generated geometry lives in TextStudio.ThreeD.TextStudio3DGlyphLibrary, which can safely vary by style and quality.
Methods
Section titled “Methods”
GetFontBytesSnapshot()
Section titled “GetFontBytesSnapshot()”public byte[] GetFontBytesSnapshot()Returns a detached caller-owned copy of the embedded font data.
Returns
System.Byte[]
Constructors
Section titled “Constructors”
Font3D()
Section titled “Font3D()”public Font3D()Properties
Section titled “Properties”
FontData
Section titled “FontData”public TextStudioReadOnlyBuffer<byte> FontData { get; }Read-only view over embedded font data. The view remains valid until the asset is prepared again.
Returns
TextStudio.TextStudioReadOnlyBuffer{System.Byte}
FontByteCount
Section titled “FontByteCount”public int FontByteCount { get; }Number of embedded font-data bytes.
Returns
System.Int32