GFXprim
2D bitmap graphics library with emphasis on speed and correctness
Loading...
Searching...
No Matches
Data Fields
gp_font_face Struct Reference

A font face. More...

#include <gp_font.h>

Collaboration diagram for gp_font_face:
Collaboration graph
[legend]

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_opsops
 On demand loader used for non-ASCII unicode glyphs.
 
gp_glyphs glyphs []
 Glyph tables.
 

Detailed Description

A font face.

A group of unicode blocks for a given font.

Definition at line 176 of file gp_font.h.

Field Documentation

◆ 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.

Definition at line 188 of file gp_font.h.

◆ glyphs

gp_glyphs gp_font_face::glyphs[]

Glyph tables.

NULL terminated array of glyph tables sorted by the max_glyph, i.e. the ASCII which ends at 0x7f should be first.

Definition at line 231 of file gp_font.h.

◆ max_glyph_width

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().


The documentation for this struct was generated from the following file: