Glyph

Character glyph.

Holder for glyph metrics as well as image.

Members

Properties

correctedBlackBoxX
ushort correctedBlackBoxX [@property getter]
Undocumented in source. Be warned that the author may not have intended to support it.

Variables

blackBoxX
ushort blackBoxX;

0: width of glyph black box

blackBoxY
ubyte blackBoxY;

2: height of glyph black box

glyph
ubyte[] glyph;

< 12: glyph data, arbitrary size (blackBoxX * blackBoxY)

id
uint id;

8: unique id of glyph (for drawing in hardware accelerated scenes)

lastUsage
ubyte lastUsage;

7: usage flag, to handle cleanup of unused glyphs

originX
byte originX;

3: X origin for glyph

originY
byte originY;

4: Y origin for glyph

subpixelMode
SubpixelRenderingMode subpixelMode;

6: subpixel rendering mode - if !=SubpixelRenderingMode.None, glyph data contains 3 bytes per pixel instead of 1

width
ubyte width;

5: full width of glyph

Meta