Struct FontGlyph¶
Defined in File fonts.h
Struct Documentation¶
-
struct
FontGlyph
¶ Structure to contain data for a Font Glyph.
Public Members
-
int
data_offset
¶ The file offset of the glyph’s raw image data. Only used in the case of a font package.
-
int
data_length
¶ The length of the glyph’s image data. Only used in the case of a font package.
-
char
character
¶ The character that the glyph represents.
-
short
width
¶ The width of the glyph image, in pixels.
-
short
height
¶ The height of the glyph image, in pixels.
-
FontGlyphFormat
format
¶ The format of the glyph image data. See FontGlyphFormat for more details.
-
std::string
path
¶ The path of the glyph’s image file, relative to
fontinfo.xml
’s location. Only used in the case of an unpackaged font.
-
std::string
file_path
¶ The path of the glyph’s image file. Only used in the case of an unpackaged font.
-
IWICBitmap *
bitmap
¶ The WIC bitmap for this glyph.
-
void *
bitmap_data
¶ The raw image data loaded from a font package. This must be available for the lifetime of the font, otherwise the WIC bitmap will fail to draw.
-
int