![]() |
tinyimg 1.1.1
Lightweight image manipulation library for WebAssembly
|
An ordered chain of faces, tried in turn for each codepoint. More...
#include <text.h>
Public Attributes | |
| const TinyFont * | face [TINYIMG_FONT_MAX_FALLBACK] |
| uint32_t | count |
An ordered chain of faces, tried in turn for each codepoint.
What a subset face needs to be usable: the shipped sans covers ASCII and eight accents, and a caller who needs one Greek word or a currency symbol loads a second face and puts it behind the first rather than replacing it.
The first face sets the line box. A fallback glyph is drawn at the same em size, scaled by its own face's units per em, so two faces with different unit grids still come out the same size; what it does not do is change the ascent, descent or line height, because a line's height cannot depend on which characters happen to be on it.
Keep one on the stack. It borrows the faces rather than copying them.
| uint32_t TinyFontSet::count |
How many are in use.
| const TinyFont* TinyFontSet::face[TINYIMG_FONT_MAX_FALLBACK] |
The faces, in the order they are tried.