74 bool LoadFromFile(
const std::string& Filename,
unsigned int CharSize = 30,
const Unicode::Text& Charset = ourDefaultCharset);
87 bool LoadFromMemory(
const char* Data, std::size_t SizeInBytes,
unsigned int CharSize = 30,
const Unicode::Text& Charset = ourDefaultCharset);
127 friend class priv::FontLoader;
132 static Uint32 ourDefaultCharset[];
138 unsigned int myCharSize;
139 std::map<Uint32, Glyph> myGlyphs;
bool LoadFromFile(const std::string &Filename, unsigned int CharSize=30, const Unicode::Text &Charset=ourDefaultCharset)
Load the font from a file.
bool LoadFromMemory(const char *Data, std::size_t SizeInBytes, unsigned int CharSize=30, const Unicode::Text &Charset=ourDefaultCharset)
Load the font from a file in memory.
This class is an abstract definition of a unicode text, it can be converted from and to any kind of s...