MayaFlux 0.4.0
Digital-First Multimedia Processing Framework
Loading...
Searching...
No Matches

◆ set_default_font() [1/2]

MAYAFLUX_API bool MayaFlux::Portal::Text::set_default_font ( const std::string &  font_path,
uint32_t  pixel_size = 24,
uint32_t  atlas_size = 512 
)

Load a font file and create the default GlyphAtlas at a given size.

Replaces any previously set default font. Must be called after initialize().

Parameters
font_pathPath to a TTF or OTF file.
pixel_sizeGlyph height in pixels.
atlas_sizeAtlas texture dimension (power of two, default 512).
Returns
true on success.

Definition at line 100 of file Text.cpp.

101{
102 return TypeFaceFoundry::instance().set_default_font(path, pixel_size, atlas_size);
103}

References MayaFlux::Portal::Text::TypeFaceFoundry::instance(), and MayaFlux::Portal::Text::TypeFaceFoundry::set_default_font().

+ Here is the call graph for this function: