Per-line / per-run typographic metrics.
More...
#include <shaped_text.hpp>
Per-line / per-run typographic metrics.
All in pixels, all measured from the baseline. ascent and descent are POSITIVE distances (above + below baseline) — Skia's fAscent is flipped to match PreparedText::ascent().
◆ line_height()
| float pulp::canvas::RunMetrics::line_height |
( |
| ) |
const |
|
inlinenoexcept |
◆ ascent
| float pulp::canvas::RunMetrics::ascent = 0.0f |
◆ descent
| float pulp::canvas::RunMetrics::descent = 0.0f |
◆ leading
| float pulp::canvas::RunMetrics::leading = 0.0f |
The documentation for this struct was generated from the following file:
- /home/runner/work/pulp/pulp/core/canvas/include/pulp/canvas/shaped_text.hpp