Flint Engine
Modular C++20 2D game engine powered by SDL3
Loading...
Searching...
No Matches

◆ loadFont()

bool Flint::UICanvas::loadFont ( std::vector< char > && data,
const std::string & fontName,
uint16_t weight = 400 )

Registers raw binary TTF font file data into the subsystem memory allocator.

Parameters
dataBinary stream buffer moving the contents of the file.
fontNameExplicit identification key assigned to track this family grouping.
weightSpecific fallback prioritization code mapped to identify the variant typeface weight.