MayaFlux 0.4.0
Digital-First Multimedia Processing Framework
Loading...
Searching...
No Matches
MayaFlux::Core::TextConfig Struct Reference

Default font configuration for Portal::Text. More...

#include <GlobalGraphicsInfo.hpp>

+ Collaboration diagram for MayaFlux::Core::TextConfig:

Public Attributes

uint32_t atlas_size { 512 }
 Atlas texture dimension (power of two).
 
std::string family
 Font family name forwarded to Platform::find_font().
 
uint32_t pixel_size { 24 }
 Glyph rasterization height in pixels.
 
std::string style
 Optional style hint (e.g.
 

Detailed Description

Default font configuration for Portal::Text.

When present, GraphicsSubsystem initializes Portal::Text and attempts to load the specified font as the system default. Users may call Portal::Text::set_default_font() at any time after initialization to replace or augment this.

When absent, Portal::Text is still initialized but no default atlas is created; any call to InkPress that requires a default atlas will log an error until the user sets one explicitly.

Definition at line 217 of file GlobalGraphicsInfo.hpp.


The documentation for this struct was generated from the following file: