8 #ifndef SSG_HAVEFONT_HPP_ 9 #define SSG_HAVEFONT_HPP_ 13 #include <SFML/Graphics/Color.hpp> 14 #include <SFML/Graphics/Text.hpp> 15 #include "FontManager.hpp" 16 #include "ColorProvider.hpp" 17 #include "Element.hpp" 26 virtual void setFont(
const sf::String& name);
27 virtual void setFont(
const std::shared_ptr<sf::Font>& font);
28 std::shared_ptr<sf::Font> getFont()
const;
29 size_t getFontSize()
const;
30 virtual void setFontSize(
unsigned int fontSize);
31 virtual void setFontOutlineSize(
float fontOutlineSize);
32 sf::Uint32 getFontStyle()
const;
33 virtual void setFontStyle(sf::Uint32 fontStyle);
34 virtual void fontChangeEvent();
38 unsigned int fontSize;
39 float fontOutlineSize;
40 std::shared_ptr<sf::Font> font;
42 static void releaseAllFonts();
43 static std::set<HaveFont*> haveFontSet;
44 static sf::Mutex haveFontSetMutex;
Definition: FontManager.hpp:17
Definition: ColorProvider.hpp:15
Definition: Element.hpp:22
Definition: HaveFont.hpp:19