![]() |
tinyimg 1.0.0
Lightweight image manipulation library for Cloudflare Workers
|
What a run of text occupies. More...
#include <text.h>
Public Attributes | |
| float | width |
| float | height |
| float | ascent |
| float | descent |
| float | line_height |
| uint32_t | lines |
| uint32_t | glyphs |
| uint32_t | missing |
What a run of text occupies.
| float TinyTextMetrics::ascent |
Baseline of the first line, measured down from the top of the run.
| float TinyTextMetrics::descent |
Below that baseline, positive.
| uint32_t TinyTextMetrics::glyphs |
Codepoints the run holds, which is not its byte length.
| float TinyTextMetrics::height |
Height of the whole run: one line box per line.
| float TinyTextMetrics::line_height |
Baseline to baseline.
| uint32_t TinyTextMetrics::lines |
How many lines the run occupies.
| uint32_t TinyTextMetrics::missing |
Codepoints the face had no glyph for.
| float TinyTextMetrics::width |
Advance width of the widest line, in pixels.