insightdock::charts::load_font_data

Read and validate a TTF from disk for use as ChartOptions::font.

Synopsis

Declared in <insightdock/font.h>
[[visibility]]
FontDataPtr
load_font_data(char const* path);

Return Value

Shared font bytes, or nullptr if the file is unreadable, too large (> 64 MiB) or not a parseable TrueType font.

Created with MrDocs