Draw UTF-8 text using font's size, anchored per align / baseline.
<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;
| 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. |