#include <grlib.h>
Data Fields | |
uint8_t | format |
The format of the font. Can be one of FONT_FMT_EX_UNCOMPRESSED or FONT_FMT_EX_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... | |
uint8_t | first |
The codepoint number representing the first character encoded in the font. More... | |
uint8_t | last |
The codepoint number representing the last character encoded in the font. More... | |
const uint16_t * | offset |
A pointer to a table containing 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 is a newer version of the structure which describes a font used for drawing text onto the screen. This variant allows a font to contain an arbitrary, contiguous block of codepoints from the 256 basic characters in an ISO8859-n font and allows support for accented characters in Western European languages and any left-to-right typeface supported by an ISO8859 variant. Fonts encoded in this format may be used interchangeably with the original fonts merely by casting the structure pointer when calling any function or macro which expects a font pointer as a parameter.
uint8_t Graphics_FontEx::format |
The format of the font. Can be one of FONT_FMT_EX_UNCOMPRESSED or FONT_FMT_EX_PIXEL_RLE.
uint8_t Graphics_FontEx::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.
uint8_t Graphics_FontEx::height |
The height of the character cell; this may be taller than the font data for the characters (to provide inter-line spacing).
uint8_t Graphics_FontEx::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.
uint8_t Graphics_FontEx::first |
The codepoint number representing the first character encoded in the font.
Referenced by Graphics_drawString(), and Graphics_getStringWidth().
uint8_t Graphics_FontEx::last |
The codepoint number representing the last character encoded in the font.
Referenced by Graphics_drawString(), and Graphics_getStringWidth().
const uint16_t* Graphics_FontEx::offset |
A pointer to a table containing the offset within data to the data for each character in the font.
Referenced by Graphics_drawString(), and Graphics_getStringWidth().
const uint8_t* Graphics_FontEx::data |
A pointer to the data for the font.
Referenced by Graphics_drawString(), and Graphics_getStringWidth().