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

Worst-case vertical extents over every line of a shaped paragraph. More...

#include <text_shaper.hpp>

Public Member Functions

float line_height () const

Public Attributes

float ascent = 0.0f
float descent = 0.0f
float leading = 0.0f
 max over lines of height - ascent - descent
bool real = false
 at least one line had usable metrics

Detailed Description

Worst-case vertical extents over every line of a shaped paragraph.

Member Function Documentation

◆ line_height()

float pulp::canvas::ParagraphTextExtents::line_height ( ) const
inline

Member Data Documentation

◆ ascent

float pulp::canvas::ParagraphTextExtents::ascent = 0.0f

◆ descent

float pulp::canvas::ParagraphTextExtents::descent = 0.0f

◆ leading

float pulp::canvas::ParagraphTextExtents::leading = 0.0f

max over lines of height - ascent - descent

◆ real

bool pulp::canvas::ParagraphTextExtents::real = false

at least one line had usable metrics


The documentation for this struct was generated from the following file:
  • /home/runner/work/pulp/pulp/core/canvas/include/pulp/canvas/text_shaper.hpp