Conquer Chess
Chess and Starcraft combined
Loading...
Searching...
No Matches
fonts.h
Go to the documentation of this file.
1#ifndef FONTS_H
2#define FONTS_H
3
4#include <SFML/Graphics/Font.hpp>
5
9class fonts
10{
11public:
12 fonts();
13
14 int get_n_fonts() const noexcept { return sizeof(*this) / sizeof(m_arial_font); };
15
17 sf::Font& get_arial_font() noexcept { return m_arial_font; }
18
20 sf::Font& get_code_squared_font() noexcept { return m_code_squared_font; }
21
23 sf::Font& get_futuristic_font() noexcept { return m_futuristic_font; }
24
25private:
26 sf::Font m_arial_font;
27 sf::Font m_code_squared_font;
28 sf::Font m_futuristic_font;
29};
30
31#endif // FONTS_H
The fonts used by this game.
Definition fonts.h:10
int get_n_fonts() const noexcept
Definition fonts.h:14
sf::Font & get_futuristic_font() noexcept
Get the Futuristic Fixed-Width font.
Definition fonts.h:23
fonts()
Definition fonts.cpp:5
sf::Font & get_arial_font() noexcept
Get an Arial font.
Definition fonts.h:17
sf::Font & get_code_squared_font() noexcept
Get the Code Squared font.
Definition fonts.h:20