insightdock::charts::DrawTarget::draw_text

Draw UTF-8 text using font's size, anchored per align / baseline.

Synopsis

Declared in <insightdock/draw_target.h>
virtual
void
draw_text(
    Font const& font,
    float x,
    float y,
    std::string const& text,
    Color const& color,
    TextAlign align = TextAlign::Left,
    TextBaseline baseline = TextBaseline::Alphabetic) = 0;

Parameters

Name Description
font TrueType font rasterizer (stb_truetype backend).
color RGBA color with 8-bit per channel.
align Horizontal text alignment relative to the anchor point.
baseline Vertical text alignment relative to the anchor point.

Created with MrDocs