cohtml.Net.UserFontDescription.CharInfo

Struct representing data for individual char.

Inherits from SystemIDisposable

Public Functions

Name
virtual voidDispose()
CharInfo()

Public Properties

Name
uintCharCode
UTF32 char code.
floatX
X position in the texture. Texture normalized space [0, 1].
floatY
Y position in the texture. Texture normalized space [0, 1].
floatWidth
Width of the char in the texture. Texture normalized space [0, 1].
floatHeight
Height of the char in the texture. Texture normalized space [0, 1].
floatOffsetX
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.
floatOffsetY
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.
floatAdvance
Amount of pixels to advance after drawing the glyph, according to the Size of the font.
uintImageIndex
Zero based index of the image this glyph resides in.

Protected Attributes

Name
boolswigCMemOwn

Public Functions Documentation

function Dispose

virtual void Dispose()

function CharInfo

CharInfo()

Public Property Documentation

property CharCode

uint CharCode;

UTF32 char code.

property X

float X;

X position in the texture. Texture normalized space [0, 1].

property Y

float Y;

Y position in the texture. Texture normalized space [0, 1].

property Width

float Width;

Width of the char in the texture. Texture normalized space [0, 1].

property Height

float Height;

Height of the char in the texture. Texture normalized space [0, 1].

property 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.

property 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.

property Advance

float Advance;

Amount of pixels to advance after drawing the glyph, according to the Size of the font.

property ImageIndex

uint ImageIndex;

Zero based index of the image this glyph resides in.

Protected Attributes Documentation

variable swigCMemOwn

bool swigCMemOwn;