Struct Glyph

Character glyph.

struct Glyph

Holder for glyph metrics as well as image.

Fields

TypeNameDescription
ushort
blackBoxX Width of the glyph image box
ubyte
blackBoxY Height of the glyph image box
ubyte[]
glyph Glyph data, arbitrary size (blackBoxX * blackBoxY)
uint
id Unique id of glyph (for drawing in hardware accelerated scenes)
byte
originX X origin for glyph
byte
originY Y origin for glyph
subpixelMode Subpixel rendering mode - if not none, the glyph data contains 3 bytes per pixel instead of 1
float
widthPixels Full width of the glyph

Properties

TypeNameDescription
ushort
correctedBlackBoxX[get]