![]() |
tinyimg 1.0.0
Lightweight image manipulation library for Cloudflare Workers
|
What a face says about itself, in pixels at a size. More...
#include <text.h>
Public Attributes | |
| float | ascent |
| float | descent |
| float | line_height |
| float | size |
| uint32_t | glyphs |
| uint8_t | fixed_size |
What a face says about itself, in pixels at a size.
The numbers a caller needs to place a line of text without knowing anything about font units.
| float TinyFontMetrics::ascent |
Baseline to the top of the ascenders.
| float TinyFontMetrics::descent |
Baseline down to the bottom of the descenders, positive.
| uint8_t TinyFontMetrics::fixed_size |
Non-zero when the size is fixed, which a bitmap face's is.
| uint32_t TinyFontMetrics::glyphs |
Glyphs the face holds.
| float TinyFontMetrics::line_height |
Baseline to baseline.
| float TinyFontMetrics::size |
Em size the numbers are for.