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

◆ add_fallback_font() [1/2]

MAYAFLUX_API bool MayaFlux::Portal::Text::add_fallback_font ( const std::string &  font_path)

Load a font file and register it as a fallback on the default atlas.

Tried, in registration order, whenever the default font lacks a codepoint. Must be called after set_default_font(); survives a later call to set_default_font() (re-registered on the atlas it constructs).

Parameters
font_pathPath to a TTF or OTF file.
Returns
true on success.

Definition at line 105 of file Text.cpp.

106{
107 return TypeFaceFoundry::instance().add_fallback_font(font_path);
108}

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

Referenced by add_fallback_font().

+ Here is the call graph for this function:
+ Here is the caller graph for this function: