Fission FSN
Loading...
Searching...
No Matches
fsCFontManager.h
Go to the documentation of this file.
1/********************************************************************
2*
3* Created: 10/3/2014 14:12
4*
5* File: fsCFontManager.h
6*
7* Author: Mick Waites
8*
9* Purpose: Loading and caching fonts.
10*
11*********************************************************************/
12
13#ifndef fsCFontManagerhdr
14#define fsCFontManagerhdr
15
16#include <map>
17#include <memory>
18
19#include <fsCore/fsStr.h>
21
22#include "../fsIFont.h"
23
24
25class fsCFontManager : public fsTSingleton<fsCFontManager>
26{
27 friend class fsTSingleton<fsCFontManager>;
28
29public:
30
31 fsIFont* fontGet(const fsSFontParams& pParams);
32
33protected:
34
36 virtual ~fsCFontManager();
37
38 std::map<fsStr, std::unique_ptr<fsIFont>> mCachedFonts;
39
40private:
41
42 static fsStr indexNameGet(const fsSFontParams& pParams);
43};
44
45#endif
fsIFont * fontGet(const fsSFontParams &pParams)
Definition fsCFontManager.cpp:9
virtual ~fsCFontManager()
Definition fsCFontManager.cpp:59
std::map< fsStr, std::unique_ptr< fsIFont > > mCachedFonts
Definition fsCFontManager.h:38
fsCFontManager()
Definition fsCFontManager.cpp:55
Definition fsIFont.h:34
Definition fsStr.h:23
Definition fsIFont.h:20