insightdock::charts::Font::baseline_offset

Distance from the alphabetic baseline up to the anchor for baseline, in pixels.

Synopsis

Declared in <insightdock/font.h>
float
baseline_offset(TextBaseline baseline) const;

Description

draw_text places the alphabetic baseline at y + baseline_offset(baseline); vector targets use the same value so text sits where the raster output puts it.

Parameters

Name Description
baseline Vertical text alignment relative to the anchor point.

Created with MrDocs