cohtml::UserFontDescription::CharInfo
Struct representing data for individual char.
#include <System.h>
Public Attributes
Section titled “Public Attributes”| Name | |
|---|---|
| unsigned | CharCode UTF32 char code. |
| float | X X position in the texture. Texture normalized space [0, 1]. |
| float | Y Y position in the texture. Texture normalized space [0, 1]. |
| float | Width Width of the char in the texture. Texture normalized space [0, 1]. |
| float | Height Height of the char in the texture. Texture normalized space [0, 1]. |
| float | OffsetX Offset in x direction, relative to the top left corner of the glyph image, applied to drawing position. In pixels according to the Size of the font. |
| float | OffsetY Offset in y direction, relative to the top left corner of the glyph image, applied to drawing position. In pixels according to the Size of the font. |
| float | Advance Amount of pixels to advance after drawing the glyph, according to the Size of the font. |
| unsigned | ImageIndex Zero based index of the image this glyph resides in. |
Public Attributes Documentation
Section titled “Public Attributes Documentation”variable CharCode
Section titled “variable CharCode”unsigned CharCode;UTF32 char code.
variable X
Section titled “variable X”float X;X position in the texture. Texture normalized space [0, 1].
variable Y
Section titled “variable Y”float Y;Y position in the texture. Texture normalized space [0, 1].
variable Width
Section titled “variable Width”float Width;Width of the char in the texture. Texture normalized space [0, 1].
variable Height
Section titled “variable Height”float Height;Height of the char in the texture. Texture normalized space [0, 1].
variable OffsetX
Section titled “variable OffsetX”float OffsetX;Offset in x direction, relative to the top left corner of the glyph image, applied to drawing position. In pixels according to the Size of the font.
variable OffsetY
Section titled “variable OffsetY”float OffsetY;Offset in y direction, relative to the top left corner of the glyph image, applied to drawing position. In pixels according to the Size of the font.
variable Advance
Section titled “variable Advance”float Advance;Amount of pixels to advance after drawing the glyph, according to the Size of the font.
variable ImageIndex
Section titled “variable ImageIndex”unsigned ImageIndex;Zero based index of the image this glyph resides in.
© 2026 Coherent Labs. All rights reserved.