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

A measured text segment — cached after shaping. More...

#include <text_shaper.hpp>

Public Attributes

std::string text
float width = 0
float ascent = 0
float descent = 0
float leading = 0
bool is_whitespace = false
bool is_newline = false
bool joins_previous_word = false
int style_index = -1

Detailed Description

A measured text segment — cached after shaping.

Member Data Documentation

◆ ascent

float pulp::canvas::ShapedSegment::ascent = 0

◆ descent

float pulp::canvas::ShapedSegment::descent = 0

◆ is_newline

bool pulp::canvas::ShapedSegment::is_newline = false

◆ is_whitespace

bool pulp::canvas::ShapedSegment::is_whitespace = false

◆ joins_previous_word

bool pulp::canvas::ShapedSegment::joins_previous_word = false

◆ leading

float pulp::canvas::ShapedSegment::leading = 0

◆ style_index

int pulp::canvas::ShapedSegment::style_index = -1

◆ text

std::string pulp::canvas::ShapedSegment::text

◆ width

float pulp::canvas::ShapedSegment::width = 0

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