16#ifndef AEONGUI_FONTDATABASE_H
17#define AEONGUI_FONTDATABASE_H
24typedef struct _PangoFontMap PangoFontMap;
26typedef struct _PangoContext PangoContext;
28typedef struct _FcConfig FcConfig;
58 DLL
static bool AddFontFile (
const std::string& aPath );
68 FontDatabase() =
delete;
69 static FcConfig* sFcConfig;
70 static PangoFontMap* sFontMap;
static bool AddFontFile(const std::string &aPath)
Add a single font file to the database.
Definition FontDatabase.cpp:176
static bool Initialize()
Initialize the font database. Call once at startup.
Definition FontDatabase.cpp:100
static PangoFontMap * GetFontMap()
Get the PangoFontMap backed by the local font database.
Definition FontDatabase.cpp:192
static bool AddFontDirectory(const std::string &aPath)
Add a directory of font files (.ttf, .otf, etc.) to the database.
Definition FontDatabase.cpp:159
static void Finalize()
Finalize the font database. Call once at shutdown.
Definition FontDatabase.cpp:145
static PangoContext * CreateContext()
Create a new PangoContext from the local font map.
Definition FontDatabase.cpp:197