| Parameter | Description |
|---|---|
| familyName | The family name of the source font. |
| styleName | The style name of the source font face. |
| pointSize | Optional point size. |
FontAsset An instance of the newly created font asset.
Creates a new font asset instance from the given family name and style.
| Parameter | Description |
|---|---|
| familyName | The family name of the source font. |
| styleName | The style name of the source font face. |
| pointSize | The desired point size. |
| padding | The font padding. |
| renderMode | The glyph render mode (ie. sdf vs. bitmap). |
FontAsset An instance of the newly created font asset.
Creates a new font asset instance from the given family name, style, point size, padding and render mode.
| Parameter | Description |
|---|---|
| fontFilePath | The file path of the font file. |
| faceIndex | The index of font face. |
| samplingPointSize | The sampling point size. |
| atlasPadding | The padding between individual glyphs in the font atlas texture. |
| renderMode | The atlas render mode. |
| atlasWidth | The atlas texture width. |
| atlasHeight | The atlas texture height. |
FontAsset An instance of the newly created font asset.
Creates a new font asset instance from the font file at the given file path.
| Parameter | Description |
|---|---|
| font | The source font object. |
FontAsset An instance of the newly created font asset.
Creates a new font asset instance from the provided font object.
| Parameter | Description |
|---|---|
| font | The source font object. |
| samplingPointSize | The sampling point size. |
| atlasPadding | The padding between individual glyphs in the font atlas texture. |
| renderMode | The atlas render mode. |
| atlasWidth | The atlas texture width. |
| atlasHeight | The atlas texture height. |
| atlasPopulationMode | The atlas population mode. |
| enableMultiAtlasSupport | Enable multi atlas texture. |
FontAsset An instance of the newly created font asset.
Creates a new font asset instance from the provided font object.