Method CreateFontAsset
CreateFontAsset(Font)
Create new instance of a font asset using default settings.
Declaration
public static TMP_FontAsset CreateFontAsset(Font font)
Parameters
| Type | Name | Description |
|---|---|---|
| Font | font |
Returns
| Type | Description |
|---|---|
| TMP_FontAsset |
CreateFontAsset(Font, int, int, GlyphRenderMode, int, int, AtlasPopulationMode, bool)
Create new instance of a font asset.
Declaration
public static TMP_FontAsset CreateFontAsset(Font font, int samplingPointSize, int atlasPadding, GlyphRenderMode renderMode, int atlasWidth, int atlasHeight, AtlasPopulationMode atlasPopulationMode = AtlasPopulationMode.Dynamic, bool enableMultiAtlasSupport = true)
Parameters
| Type | Name | Description |
|---|---|---|
| Font | font | The source font file. |
| int | samplingPointSize | The sampling point size. |
| int | atlasPadding | The padding / spread between individual glyphs in the font asset. |
| GlyphRenderMode | renderMode | |
| int | atlasWidth | The atlas texture width. |
| int | atlasHeight | The atlas texture height. |
| AtlasPopulationMode | atlasPopulationMode | |
| bool | enableMultiAtlasSupport |
Returns
| Type | Description |
|---|---|
| TMP_FontAsset |