25#ifndef SFML_FONTLOADER_HPP
26#define SFML_FONTLOADER_HPP
31#include <SFML/System/NonCopyable.hpp>
32#include <SFML/System/Unicode.hpp>
47class FontLoader : NonCopyable
57 static FontLoader& GetInstance();
70 bool LoadFontFromFile(
const std::string& Filename,
unsigned int CharSize,
const Unicode::UTF32String& Charset, Font& LoadedFont);
84 bool LoadFontFromMemory(
const char* Data, std::size_t SizeInBytes,
unsigned int CharSize,
const Unicode::UTF32String& Charset, Font& LoadedFont);
109 FT_Error CreateBitmapFont(FT_Face FontFace,
unsigned int CharSize,
const Unicode::UTF32String& Charset, Font& LoadedFont);
119 static std::string GetErrorDesc(FT_Error Error);
124 FT_Library myLibrary;
Font is the low-level class for loading and manipulating character fonts.