|
MayaFlux 0.4.0
Digital-First Multimedia Processing Framework
|
| MAYAFLUX_API bool MayaFlux::Portal::Text::set_default_font | ( | std::string_view | family, |
| std::string_view | style, | ||
| uint32_t | pixel_size, | ||
| uint32_t | atlas_size = 512 |
||
| ) |
Locate a system font by family and style, then load it as the default.
Delegates font path resolution to find_font, then calls the path-based overload. Returns false and logs if the family cannot be located on the current platform.
| family | Font family name, e.g. "JetBrains Mono". |
| style | Style hint, e.g. "Medium", "Bold". |
| pixel_size | Glyph height in pixels. |
| atlas_size | Atlas texture dimension (power of two, default 512). |
Definition at line 82 of file Text.cpp.
References MayaFlux::Journal::API, find_font(), MF_ERROR, MayaFlux::Journal::Portal, and set_default_font().
Referenced by initialize(), and set_default_font().
Here is the call graph for this function:
Here is the caller graph for this function: