TMP_FontAsset
class in TMPro · Unity.TextMeshPro · inherits from TMP_Asset
16 of 35 of Unity's members
In Tassix
A font for TextMeshPro: the source font file and its face metrics, sampled at a point size (90 by default). Tassix draws its glyphs as bitmaps from the source font rather than from a signed distance field atlas, so the atlas settings only describe the asset; an asset without its source font draws from the atlas saved in it (its glyph and character tables, or TextMesh Pro 1.x's glyph list).
Properties 14
int atlasHeight { get; }int atlasPadding { get; }AtlasPopulationMode atlasPopulationMode { get; set; }Texture2D atlasTexture { get; }Texture2D[] atlasTextures { get; set; }int atlasWidth { get; }Dictionary<uint, TMP_Character> characterLookupTable { get; }List<TMP_Character> characterTable { get; }FaceInfo faceInfo { get; set; }List<TMP_FontAsset> fallbackFontAssetTable { get; set; }TMP_FontFeatureTable fontFeatureTable { get; }List<Glyph> glyphTable { get; }bool isMultiAtlasTexturesEnabled { get; set; }Font? sourceFontFile { get; }Methods 6
void ClearFontAssetData(bool setAtlasSizeToZero = false)static TMP_FontAsset CreateFontAsset(Font font)static TMP_FontAsset CreateFontAsset(Font font, int samplingPointSize, int atlasPadding, UnityEngine.TextCore.LowLevel.GlyphRenderMode renderMode, int atlasWidth, int atlasHeight, AtlasPopulationMode atlasPopulationMode = AtlasPopulationMode.Dynamic, bool enableMultiAtlasSupport = true)static TMP_FontAsset CreateFontAsset(string familyName, string styleName, int pointSize = 90)bool HasCharacter(int character)bool HasCharacter(char character, bool searchFallbacks = false, bool tryAddCharacter = false)bool HasCharacters(string text)bool HasCharacters(string text, out List<char> missingCharacters)void ReadFontAssetDefinition()bool TryAddCharacters(string characters, bool includeFontFeatures = false)bool TryAddCharacters(string characters, out string missingCharacters, bool includeFontFeatures = false)Not in Tassix yet 19
GetCharacters GetCharactersArray atlas atlasRenderMode atlasTextureCount boldSpacing boldStyle characterLookupTable characterTable creationSettings fontFeatureTable fontWeightTable getFontFeatures glyphLookupTable glyphTable italicStyle normalSpacingOffset normalStyle tabSize