Legacy Documentation: Version 2018.2 (Go to current version)
LanguageEnglish
  • C#

CharacterInfo

struct in UnityEngine

/

Implemented in:UnityEngine.TextRenderingModule

Suggest a change

Success!

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.

Close

Submission failed

For some reason your suggested change could not be submitted. Please <a>try again</a> in a few minutes. And thank you for taking the time to help us improve the quality of Unity Documentation.

Close

Cancel

Description

Specification for how to render a character from the font texture. See Font.characterInfo.

See Also: Example at Font.RequestCharactersInTexture.

Properties

advanceThe horizontal distance, rounded to the nearest integer, from the origin of this character to the origin of the next character.
bearingThe horizontal distance from the origin of this glyph to the begining of the glyph image.
glyphHeightThe height of the glyph image.
glyphWidthThe width of the glyph image.
indexUnicode value of the character.
maxXThe maximum extend of the glyph image in the x-axis.
maxYThe maximum extend of the glyph image in the y-axis.
minXThe minium extend of the glyph image in the x-axis.
minYThe minimum extend of the glyph image in the y-axis.
sizeThe size of the character or 0 if it is the default font size.
styleThe style of the character.
uvBottomLeftThe uv coordinate matching the bottom left of the glyph image in the font texture.
uvBottomRightThe uv coordinate matching the bottom right of the glyph image in the font texture.
uvTopLeftThe uv coordinate matching the top left of the glyph image in the font texture.
uvTopRightThe uv coordinate matching the top right of the glyph image in the font texture.

Did you find this page useful? Please give it a rating: