Skip to content

Font3D

ClassTextStudio.ThreeDTextStudio.3D
public class Font3D : ScriptableObject

Generated 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.

public byte[] GetFontBytesSnapshot()

Returns a detached caller-owned copy of the embedded font data.

Returns

System.Byte[]

public Font3D()

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}

public int FontByteCount { get; }

Number of embedded font-data bytes.

Returns

System.Int32