|
MayaFlux 0.4.0
Digital-First Multimedia Processing Framework
|
| 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().
| font_path | Path to a TTF or OTF file. |
| pixel_size | Glyph height in pixels. |
| atlas_size | Atlas texture dimension (power of two, default 512). |
Definition at line 100 of file Text.cpp.
References MayaFlux::Portal::Text::TypeFaceFoundry::instance(), and MayaFlux::Portal::Text::TypeFaceFoundry::set_default_font().
Here is the call graph for this function: