Struct Glyph
Holder for glyph
metrics as well as image.
Fields
Name | Type | Description |
---|---|---|
blackBoxX
|
ushort |
0: width of glyph black box
|
blackBoxY
|
ubyte |
2: height of glyph black box
|
glyph
|
ubyte[] |
< 12: glyph data, arbitrary size (blackBoxX * blackBoxY )
|
id
|
uint |
8: unique id of glyph (for drawing in hardware accelerated scenes)
|
lastUsage
|
ubyte |
7: usage flag, to handle cleanup of unused glyphs |
originX
|
byte |
3: X origin for glyph
|
originY
|
byte |
4: Y origin for glyph
|
subpixelMode
|
SubpixelRenderingMode |
6: subpixel rendering mode - if !=SubpixelRenderingMode , glyph data contains 3 bytes per pixel instead of 1
|
width
|
ubyte |
5: full width of glyph
|
Properties
Name | Type | Description |
---|---|---|
correctedBlackBoxX
[get]
|
ushort |
Authors
Vadim Lopatin, coolreader.org@gmail.com
Copyright
Vadim Lopatin, 2014
License
Boost License 1.0