API Documentation
Loading...
Searching...
No Matches
FontEngine Class Reference

Stores many different types of font. More...

#include <Font.h>

Collaboration diagram for FontEngine:
[legend]

Static Public Member Functions

static void AddFontListener (const String &app_font, UUID id, std::function< void(const String &)> callback)
 
static const FontApplicationFont (const String &app_font)
 
static File FindBestFitFontFile (const Font &font)
 
static bool HasApplicationFont (const String &app_font)
 
static bool HasFontFile (const String &font_name)
 
static void PullFontFromFolder (const File &folder)
 
static void ReadFontSettings ()
 
static void RemoveFontListener (const String &app_font, UUID id)
 
static void SaveFontSettings ()
 
static void SetApplicationFont (const String &app_font, const Font &font)
 
static void SetFontFile (const String &font_name, const File &file, uint04 index=0)
 
static void SetSettingsFile (const File &file)
 

Static Public Attributes

static constexpr char DefaultFont [8] = "Default"
 

Static Protected Member Functions

static File TryFontName (const String &family)
 

Static Protected Attributes

static Dictionary< String, Dictionary< UUID, std::function< void(const String &)> > > s_app_font_listener
 
static Dictionary< String, Fonts_application_fonts
 
static Dictionary< String, Strings_font_files
 
static Dictionary< String, uint04s_font_indices
 
static File s_settings_file
 
static Dictionary< String, Fonts_system_fonts
 

Detailed Description

Stores many different types of font.


Member Function Documentation

◆ AddFontListener()

static void AddFontListener ( const String & app_font,
UUID id,
std::function< void(const String &)> callback )
static

◆ ApplicationFont()

static const Font & ApplicationFont ( const String & app_font)
static

◆ FindBestFitFontFile()

static File FindBestFitFontFile ( const Font & font)
static

◆ HasApplicationFont()

static bool HasApplicationFont ( const String & app_font)
static

◆ HasFontFile()

static bool HasFontFile ( const String & font_name)
static

◆ PullFontFromFolder()

static void PullFontFromFolder ( const File & folder)
static

◆ ReadFontSettings()

static void ReadFontSettings ( )
static

◆ RemoveFontListener()

static void RemoveFontListener ( const String & app_font,
UUID id )
static

◆ SaveFontSettings()

static void SaveFontSettings ( )
static

◆ SetApplicationFont()

static void SetApplicationFont ( const String & app_font,
const Font & font )
static

◆ SetFontFile()

static void SetFontFile ( const String & font_name,
const File & file,
uint04 index = 0 )
static

◆ SetSettingsFile()

static void SetSettingsFile ( const File & file)
static

◆ TryFontName()

static File TryFontName ( const String & family)
staticprotected

Member Data Documentation

◆ DefaultFont

char DefaultFont[8] = "Default"
staticconstexpr

◆ s_app_font_listener

Dictionary<String, Dictionary<UUID, std::function<void(const String&)> > > s_app_font_listener
staticprotected

◆ s_application_fonts

Dictionary<String, Font> s_application_fonts
staticprotected

◆ s_font_files

Dictionary<String, String> s_font_files
staticprotected

◆ s_font_indices

Dictionary<String, uint04> s_font_indices
staticprotected

◆ s_settings_file

File s_settings_file
staticprotected

◆ s_system_fonts

Dictionary<String, Font> s_system_fonts
staticprotected

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