Font structure.
Storage structure for font meta data.
#include <gfx_text.h>
Data Fields | |
union { | |
uint8_t PROGMEM_PTR_T progmem | |
Pointer to where the binary font data is stored. More... | |
} | data |
uint8_t | first_char |
uint8_t | height |
uint8_t | last_char |
enum font_data_type | type |
uint8_t | width |
union { ... } font::data |
Referenced by gfx_draw_char_hugemem(), and gfx_draw_char_progmem().
uint8_t font::first_char |
ASCII value of first character in font set.
Referenced by gfx_draw_char_hugemem(), and gfx_draw_char_progmem().
uint8_t font::height |
Height of one font character, in pixels.
Referenced by gfx_draw_char(), gfx_draw_char_hugemem(), gfx_draw_char_progmem(), gfx_draw_progmem_string_aligned(), gfx_draw_string_aligned(), gfx_get_progmem_string_bounding_box(), gfx_get_string_bounding_box(), and hx8347a_draw_string().
uint8_t font::last_char |
ASCII value of last character in the set.
uint8_t PROGMEM_PTR_T font::progmem |
Pointer to where the binary font data is stored.
This variable is accessed either through hugemem or progmem depending on the value of type.
Referenced by gfx_draw_char_progmem().
enum font_data_type font::type |
Type of storage used for binary font data. See font_data_type.
Referenced by gfx_draw_char().
uint8_t font::width |
Width of one font character, in pixels.
Referenced by gfx_draw_char(), gfx_draw_char_hugemem(), gfx_draw_char_progmem(), gfx_draw_progmem_string_aligned(), gfx_draw_string_aligned(), gfx_get_progmem_string_bounding_box(), gfx_get_string_bounding_box(), and hx8347a_draw_string().