Pulp 1.88.0
Cross-platform audio plugin framework
Loading...
Searching...
No Matches
pulp::canvas::RunMetrics Struct Reference

Per-line / per-run typographic metrics. More...

#include <shaped_text.hpp>

Public Member Functions

float line_height () const noexcept

Public Attributes

float ascent = 0.0f
float descent = 0.0f
float leading = 0.0f

Detailed Description

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().

Member Function Documentation

◆ line_height()

float pulp::canvas::RunMetrics::line_height ( ) const
inlinenoexcept

Member Data Documentation

◆ 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