Struct Glyph

Character glyph.

struct Glyph;

Holder for glyph metrics as well as image.

Fields

NameTypeDescription
blackBoxX ushort0: width of glyph black box
blackBoxY ubyte2: height of glyph black box
glyph ubyte[]< 10: glyph data, arbitrary size (blackBoxX * blackBoxY)
id uint0: unique id of glyph (for drawing in hardware accelerated scenes)
lastUsage ubyte9: usage flag, to handle cleanup of unused glyphs
originX byte3: X origin for glyph
originY byte4: Y origin for glyph
subpixelMode SubpixelRenderingMode8: subpixel rendering mode - if !=SubpixelRenderingMode.None, glyph data contains 3 bytes per pixel instead of 1
widthPixels ubyte5: full width of glyph
widthScaled ushort6: full width of glyph scaled * 64

Properties

NameTypeDescription
correctedBlackBoxX[get] ushort