GFXprim
2D bitmap graphics library with emphasis on speed and correctness
|
A font face. More...
#include <gp_font.h>
Data Fields | |
char | family_name [64] |
Font family name - eg. Sans, Serif ... | |
uint8_t | style |
A gp_font_style flags. | |
uint8_t | glyph_tables |
A number of glyph tables in this font. | |
uint16_t | ascent |
Maximal height of font glyph from baseline to the top. | |
uint16_t | descent |
Maximal length of font glyph from baseline to the bottom. | |
uint16_t | max_glyph_width |
Maximal width of font glyph. | |
uint16_t | max_glyph_advance |
Maximal glyph advance. | |
uint16_t | avg_glyph_advance |
An average glyph advance. | |
gp_font_bitmap_format | glyph_bitmap_format |
Bitmap format for all glyphs. | |
const gp_font_face_ops * | ops |
On demand loader used for non-ASCII unicode glyphs. | |
gp_glyphs | glyphs [] |
Glyph tables. | |
uint8_t gp_font_face::glyph_tables |
A number of glyph tables in this font.
The size of gp_font_face::glyphs array.
gp_glyphs gp_font_face::glyphs[] |
uint16_t gp_font_face::max_glyph_width |
Maximal width of font glyph.
Basically maximum of glyph->width + glyph->bearing_x for all font glyphs.
Definition at line 202 of file gp_font.h.
Referenced by gp_font_max_width().