Measure text at an explicit pixel size without changing the font state.
<insightdock/font.h>
TextMetrics
measure(
std::string const& text,
float size) const;
size.
| Name | Description |
|---|---|
| text | String to measure. |
| size | Pixel size to use for the measurement. |