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

Font loader callback. More...

#include <gp_font.h>

Collaboration diagram for gp_font_face_ops:
Collaboration graph
[legend]

Data Fields

gp_glyph *(* glyph_load )(const gp_font_face *self, uint32_t ch)
 Callback to load a glyph.
 
void(* font_free )(gp_font_face *self)
 Callback to free a font.
 

Detailed Description

Font loader callback.

When TrueType font is loaded the ASCII part is pre-rendered into the memory, any other characters are loaded on-demand when needed.

Definition at line 153 of file gp_font.h.

Field Documentation

◆ font_free

void(* gp_font_face_ops::font_free) (gp_font_face *self)

Callback to free a font.

Parameters
selfA font face.

Definition at line 168 of file gp_font.h.

◆ glyph_load

gp_glyph *(* gp_font_face_ops::glyph_load) (const gp_font_face *self, uint32_t ch)

Callback to load a glyph.

Parameters
selfA font face.
chAn unicode glyph.
Returns
A pointer to loaded glyph or NULL if it's not in a font.

Definition at line 162 of file gp_font.h.


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