Starshatter_Open
Open source Starshatter engine
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
FontMgr.h
Go to the documentation of this file.
1 /* Project nGenEx
2  Destroyer Studios LLC
3  Copyright © 1997-2004. All Rights Reserved.
4 
5  SUBSYSTEM: nGenEx.lib
6  FILE: FontMgr.h
7  AUTHOR: John DiCamillo
8 
9 
10  OVERVIEW
11  ========
12  Font Resource Manager class
13 */
14 
15 #ifndef FontMgr_h
16 #define FontMgr_h
17 
18 #include "Types.h"
19 #include "Color.h"
20 #include "List.h"
21 #include "Text.h"
22 
23 class Font;
24 
25 // +--------------------------------------------------------------------+
26 
27 struct FontItem
28 {
29  static const char* TYPENAME() { return "FontItem"; }
30 
32  int size;
34 };
35 
36 class FontMgr
37 {
38 public:
39  static const char* TYPENAME() { return "FontMgr"; }
40 
41  static void Close();
42  static void Register(const char* name, Font* font);
43  static Font* Find(const char* name);
44 
45 private:
46  static List<FontItem> fonts;
47 };
48 
49 #endif FontMgr_h
50