Font Texture Generator

The Font texture generator will generate a texture atlas from a font file and a list of characters.

Properties

Property name

Default value

Description

All common properties, see Texture Generators

FontAsset

<empty>

Path to a font file (.ttf / .otf)

CharacterSet

 !"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_`abcdefghijklmnopqrstuvwxyz{|}~

List of characters to raster

GlyphOrigin

0.1, 0.75

Relative origin of each glyph inside their atlas tile

GlyphScale

0.75

Relative scale of each glyph within the atlas tile

Layout

TileMode

Auto

Allows to try auto-determining the tiling, or specify it manually.
* Auto: Auto-fit tiling
* Manual: Manually specify tile count in the U & V directions

Tiles

Atlas dimensions: Number of tiles in the U and V directions.

Image

BaseColor

1, 1, 1, 1

Color of the font glyphs

AlphaMode

StandardAlpha

How to generate the texture with respect to the alpha channel
* NoAlpha: No alpha channel, texture background will be black
* StandardAlpha: Alpha channel is the font mask, RGB values are BaseColor for all texels
* PremultipliedAlpha: Alpha channel is the font mask, RGB values are BaseColor multiplied by the alpha (so background is transparent black outside the glyphs)