Pulp 1.88.0
Cross-platform audio plugin framework
Loading...
Searching...
No Matches
text_line_metrics.hpp File Reference
#include <pulp/view/design_line_metrics.hpp>
#include <optional>

Go to the source code of this file.

Namespaces

namespace  pulp
namespace  pulp::view
 Hover-cursor tracking for platform window hosts.

Functions

float pulp::view::captured_baseline_offset (float line_height, float css_descent, const std::optional< LineMetrics > &measured)
 Where the baseline of a captured line sits below the top of its run rect, for a rect line_height CSS px tall.
float pulp::view::captured_baseline (float line_top, float offset, float root_y)
 The baseline of a captured line whose rect top is at line_top in the label's coordinates and whose baseline sits offset below that top, snapped to a whole CSS px the way Chromium paints it.