pulsatrix 1.1.0
Loading...
Searching...
No Matches
fonts.hpp File Reference

Fonts for the ImGui windows that cover every script: the default font first, then system fonts merged in as fallbacks, so text in any language and emoji show instead of "?". More...

#include <string>
#include <vector>
Include dependency graph for fonts.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  pulsatrix::VizFontFile
 A font file, and the face to use when it holds several (.ttc). More...
 
struct  pulsatrix::VizFontOptions
 Which fonts a VizWindow loads. More...
 

Namespaces

namespace  pulsatrix
 

Functions

std::vector< VizFontFile > pulsatrix::FindFallbackFonts ()
 The system fonts that together cover as many scripts as this machine has fonts for, best first.
 
VizFontOptions pulsatrix::DefaultVizFontOptions ()
 The font options a VizWindow uses when given none. With the environment variable PULSATRIX_VIZ_FONTS set to font paths (separated by ';', or ':' outside Windows), those fonts come first. Set to "none", only ImGui's default font is used.
 
std::vector< VizFontFile > pulsatrix::LoadVizFonts (const VizFontOptions &options)
 Loads ImGui's default font and merges options' fonts into it, in the current ImGui context. Since ImGui 1.92 glyphs are drawn on first use, so a merged font costs only its file in memory.
 
bool pulsatrix::VizFontsUseFreeType ()
 Whether this build's ImGui uses FreeType (color emoji) rather than stb_truetype.
 

Detailed Description

Fonts for the ImGui windows that cover every script: the default font first, then system fonts merged in as fallbacks, so text in any language and emoji show instead of "?".