Struct BitmapFont
Provides metadata about the font.
Namespace: Unity.Tiny.Text
Syntax
public struct BitmapFont : IComponentData
Remarks
Generally you will want to use CreateBitmapFont(EntityManager, ref Entity, Single, Single, Single) to create BitmapFonts. A BitmapFont is fully specified by an entity that has the following components:
Fields
ascent
The distance from the baseline to the font's ascent line.
Declaration
public float ascent
Field Value
Type | Description |
---|---|
System.Single |
descent
Distance from the baseline to the font's descent line.
Declaration
public float descent
Field Value
Type | Description |
---|---|
System.Single |
size
The Font size in World Units.
Declaration
public float size
Field Value
Type | Description |
---|---|
System.Single |
textureAtlas
The entity on which to look for an Image2D component to use.
Declaration
[EntityWithComponents(new Type[]{typeof(Image2D)})]
public Entity textureAtlas
Field Value
Type | Description |
---|---|
Entity |