insightdock::charts::Font::measure

Measure text at an explicit pixel size without changing the font state.

Synopsis

Declared in <insightdock/font.h>
TextMetrics
measure(
    std::string const& text,
    float size) const;

Return Value

Width and height at size.

Parameters

Name Description
text String to measure.
size Pixel size to use for the measurement.

Created with MrDocs