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

What the cached line boxes above were laid out AGAINST. More...

#include <design_ir.hpp>

Public Attributes

float width = 0.0f
 The container width Chrome broke the text at.
std::string resolved_face
 The face Blink actually shaped with — a PostScript name, not the requested family.
std::optional< LineMetrics > line_metrics
 The primary font's line metrics Chrome laid the lines out with, when the capture measured them (see design_line_metrics.hpp).

Detailed Description

What the cached line boxes above were laid out AGAINST.

The cache is only usable if the conditions that produced it still hold, and this records them so the check is against captured fact rather than against an assumption. Deliberately conservative: any difference reflows, because a wrongly-reused cache is the bug this exists to prevent while a wrongly- discarded one costs only a reflow.

Member Data Documentation

◆ line_metrics

std::optional<LineMetrics> pulp::view::IRTextLayoutBasis::line_metrics

The primary font's line metrics Chrome laid the lines out with, when the capture measured them (see design_line_metrics.hpp).

◆ resolved_face

std::string pulp::view::IRTextLayoutBasis::resolved_face

The face Blink actually shaped with — a PostScript name, not the requested family.

Empty when the capture recorded no platform font, which makes the cache unusable rather than usable-on-trust.

◆ width

float pulp::view::IRTextLayoutBasis::width = 0.0f

The container width Chrome broke the text at.


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