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

Result of laying out a line of text — position and metrics for each glyph. More...

#include <text_layout.hpp>

Public Attributes

float x = 0
float y = 0
 Position relative to the line origin.
float advance = 0
 Horizontal advance to next glyph.
uint32_t codepoint = 0
 Unicode codepoint.
size_t text_index = 0
 Index into the source text.

Detailed Description

Result of laying out a line of text — position and metrics for each glyph.

Member Data Documentation

◆ advance

float pulp::canvas::GlyphPosition::advance = 0

Horizontal advance to next glyph.

◆ codepoint

uint32_t pulp::canvas::GlyphPosition::codepoint = 0

Unicode codepoint.

◆ text_index

size_t pulp::canvas::GlyphPosition::text_index = 0

Index into the source text.

◆ x

float pulp::canvas::GlyphPosition::x = 0

◆ y

float pulp::canvas::GlyphPosition::y = 0

Position relative to the line origin.


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