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). | |
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.
| 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).
| 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.
| float pulp::view::IRTextLayoutBasis::width = 0.0f |
The container width Chrome broke the text at.