Select your preferred scripting language. All code snippets will be displayed in this language.
struct in UnityEngine
Thank you for helping us improve the quality of Unity Documentation. Although we cannot accept all submissions, we do read each suggested change from our users and will make updates where applicable.
CloseSpecification for how to render a character from the font texture. See Font.characterInfo.
See Also: Example at Font.RequestCharactersInTexture.
advance | The horizontal distance from the origin of this character to the origin of the next character. |
bearing | The horizontal distance from the origin of this glyph to the begining of the glyph image. |
glyphHeight | The height of the glyph image. |
glyphWidth | The width of the glyph image. |
index | Unicode value of the character. |
maxX | The maximum extend of the glyph image in the x-axis. |
maxY | The maximum extend of the glyph image in the y-axis. |
minX | The minium extend of the glyph image in the x-axis. |
minY | The minimum extend of the glyph image in the y-axis. |
size | The size of the character or 0 if it is the default font size. |
style | The style of the character. |
uvBottomLeft | The uv coordinate matching the bottom left of the glyph image in the font texture. |
uvBottomRight | The uv coordinate matching the bottom right of the glyph image in the font texture. |
uvTopLeft | The uv coordinate matching the top left of the glyph image in the font texture. |
uvTopRight | The uv coordinate matching the top right of the glyph image in the font texture. |