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

Static Public Attributes

static constexpr char DefaultFont [8] = "Default"
 

Static Protected Member Functions

static NDEVR_BASE_API File TryFontName (const String &family)
 

Static Protected Attributes

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

Detailed Description

Stores many different types of font.


autotoc_md321

Member Function Documentation

◆ AddFontListener()

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

◆ ApplicationFont()

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

◆ FindBestFitFontFile()

static NDEVR_BASE_API File FindBestFitFontFile ( const Font & font)
static

◆ HasApplicationFont()

static NDEVR_BASE_API bool HasApplicationFont ( const String & app_font)
static

◆ HasFontFile()

static NDEVR_BASE_API bool HasFontFile ( const String & font_name)
static

◆ PullFontFromFolder()

static NDEVR_BASE_API void PullFontFromFolder ( const File & folder)
static

◆ ReadFontSettings()

static NDEVR_BASE_API void ReadFontSettings ( )
static

◆ RemoveFontListener()

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

◆ SaveFontSettings()

static NDEVR_BASE_API void SaveFontSettings ( )
static

◆ SetApplicationFont()

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

◆ SetFontFile()

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

◆ SetSettingsFile()

static NDEVR_BASE_API void SetSettingsFile ( const File & file)
static

◆ TryFontName()

static NDEVR_BASE_API File TryFontName ( const String & family)
staticprotected

Member Data Documentation

◆ DefaultFont

char DefaultFont[8] = "Default"
staticconstexpr

◆ s_app_font_listener

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

◆ s_application_fonts

NDEVR_BASE_API Dictionary<String, Font> s_application_fonts
staticprotected

◆ s_font_files

NDEVR_BASE_API Dictionary<String, String> s_font_files
staticprotected

◆ s_font_indices

NDEVR_BASE_API Dictionary<String, uint04> s_font_indices
staticprotected

◆ s_settings_file

NDEVR_BASE_API File s_settings_file
staticprotected

◆ s_system_fonts

NDEVR_BASE_API Dictionary<String, Font> s_system_fonts
staticprotected

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