31 #include <SFML/System/Resource.hpp>
32 #include <SFML/System/Vector2.hpp>
33 #include <SFML/System/Unicode.hpp>
34 #include <SFML/Graphics/Glyph.hpp>
35 #include <SFML/Graphics/Image.hpp>
36 #include <SFML/Graphics/Rect.hpp>
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);
96 unsigned int GetCharacterSize()
const;
107 const Glyph& GetGlyph(Uint32 CodePoint)
const;
115 const Image& GetImage()
const;
123 static const Font& GetDefaultFont();
127 friend class priv::FontLoader;
132 static Uint32 ourDefaultCharset[];
138 unsigned int myCharSize;
139 std::map<Uint32, Glyph> myGlyphs;
145 #endif // SFML_FONT_HPP