Oodle/src/CTextManager.h
raw| 1 | #ifndef _CTEXTMANAGER_ |
| 2 | #define _CTEXTMANAGER_ |
| 3 | |
| 4 | #include <string> |
| 5 | using namespace std; |
| 6 | |
| 7 | class CTextManager |
| 8 | { |
| 9 | public: |
| 10 | enum FontType |
| 11 | { |
| 12 | PLAIN, |
| 13 | FANCY |
| 14 | }; |
| 15 | |
| 16 | static string getDefaultFont(FontType t = PLAIN); |
| 17 | static double getPtSize(double scale); |
| 18 | |
| 19 | |
| 20 | private: |
| 21 | static const int basePtSz = 12; |
| 22 | static const string defaultFont; |
| 23 | static const string defaultFancyFont; |
| 24 | |
| 25 | }; |
| 26 | |
| 27 | #endif |