16#ifndef AEONGUI_FONTDATABASE_H
17#define AEONGUI_FONTDATABASE_H
25typedef struct _PangoFontMap PangoFontMap;
27typedef struct _PangoContext PangoContext;
29typedef struct _FcConfig FcConfig;
59 DLL
static void AddFontFile (
const std::string& aPath );
73 FontDatabase() =
delete;
74 static std::recursive_mutex& GetMutex();
75 static FcConfig* sFcConfig;
76 static PangoFontMap* sFontMap;
static void AddFontFile(const std::string &aPath)
Add a single font file to the database.
Definition FontDatabase.cpp:200
static FcConfig * GetFcConfig()
Get the FcConfig used by the font database.
Definition FontDatabase.cpp:219
static void Initialize()
Initialize the font database. Call once at startup.
Definition FontDatabase.cpp:114
static void AddFontDirectory(const std::string &aPath)
Add a directory of font files (.ttf, .otf, etc.) to the database.
Definition FontDatabase.cpp:180
static PangoFontMap * GetFontMap()
Get the PangoFontMap backed by the local font database.
Definition FontDatabase.cpp:225
static void Finalize()
Finalize the font database. Call once at shutdown.
Definition FontDatabase.cpp:165
static PangoContext * CreateContext()
Create a new PangoContext from the local font map.
Definition FontDatabase.cpp:231