Struct CharacterInfo
Use CharacterInfo to create glyph metrics for a bitmap font.
Namespace: Unity.Tiny.Text
Syntax
public struct CharacterInfo
Fields
advance
The horizontal distance, in pixels, from this character's origin to the next character's origin.
Declaration
public float advance
Field Value
Type | Description |
---|---|
System.Single |
bearingX
The horizontal distance in pixels from this glyph's origin to the beginning of the glyph image.
Declaration
public float bearingX
Field Value
Type | Description |
---|---|
System.Single |
bearingY
The vertical distance in pixels from the baseline to the glyph's ymax (top of the glyph bounding box).
Declaration
public float bearingY
Field Value
Type | Description |
---|---|
System.Single |
characterRegion
The glyph's uv coordinates in the texture atlas. x, y is bottom left.
Declaration
public Rect characterRegion
Field Value
Type | Description |
---|---|
Rect |
height
The height of the glyph image.
Declaration
public float height
Field Value
Type | Description |
---|---|
System.Single |
value
UTF-32 character value of the glyph.
Declaration
public uint value
Field Value
Type | Description |
---|---|
System.UInt32 |
width
The width of the glyph image.
Declaration
public float width
Field Value
Type | Description |
---|---|
System.Single |