Draws possibly multi-line text, aligning each line independently.
<insightdock/detail/text_lines.h>
void
draw_text_lines(
DrawTarget& target,
Font const& font,
float x,
float y,
std::string const& text,
Color const& color,
TextAlign align,
TextBaseline baseline);
(x, y) anchors the whole block with baseline: Top/Alphabetic anchor the first line, Bottom the last line, Middle the block's centre. A single line is forwarded unchanged.
| Name | Description |
|---|---|
| target | Pixel-space drawing surface shared by all built-in charts. |
| 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. |