This structure describes a font used for drawing text onto the screen. More...
#include <grlib.h>
Data Fields | |
uint8_t | format |
The format of the font. Can be one of FONT_FMT_UNCOMPRESSED or FONT_FMT_PIXEL_RLE. More... | |
uint8_t | maxWidth |
The maximum width of a character; this is the width of the widest character in the font, though any individual character may be narrower than this width. More... | |
uint8_t | height |
The height of the character cell; this may be taller than the font data for the characters (to provide inter-line spacing). More... | |
uint8_t | baseline |
The offset between the top of the character cell and the baseline of the glyph. The baseline is the bottom row of a capital letter, below which only the descenders of the lower case letters occur. More... | |
uint16_t | offset [96] |
The offset within data to the data for each character in the font. More... | |
const uint8_t * | data |
A pointer to the data for the font. More... | |
This structure describes a font used for drawing text onto the screen.
uint8_t Graphics_Font::format |
The format of the font. Can be one of FONT_FMT_UNCOMPRESSED or FONT_FMT_PIXEL_RLE.
Referenced by Graphics_drawString(), and Graphics_getStringWidth().
uint8_t Graphics_Font::maxWidth |
The maximum width of a character; this is the width of the widest character in the font, though any individual character may be narrower than this width.
Referenced by Graphics_getFontMaxWidth(), and Graphics_getStringMaxWidth().
uint8_t Graphics_Font::height |
The height of the character cell; this may be taller than the font data for the characters (to provide inter-line spacing).
Referenced by Graphics_getFontHeight(), and Graphics_getStringHeight().
uint8_t Graphics_Font::baseline |
The offset between the top of the character cell and the baseline of the glyph. The baseline is the bottom row of a capital letter, below which only the descenders of the lower case letters occur.
Referenced by Graphics_drawStringCentered(), Graphics_getFontBaseline(), and Graphics_getStringBaseline().
uint16_t Graphics_Font::offset[96] |
The offset within data to the data for each character in the font.
Referenced by Graphics_drawString(), and Graphics_getStringWidth().
const uint8_t* Graphics_Font::data |
A pointer to the data for the font.
Referenced by Graphics_drawString(), and Graphics_getStringWidth().