OpenMW
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
fontloader.hpp
Go to the documentation of this file.
1 #ifndef OPENMW_COMPONENTS_FONTLOADER_H
2 #define OPENMW_COMPONENTS_FONTLOADER_H
3 
4 #include "boost/filesystem/operations.hpp"
5 
8 
9 namespace VFS
10 {
11  class Manager;
12 }
13 
14 namespace MyGUI
15 {
16  class ITexture;
17  class ResourceManualFont;
18 }
19 
20 namespace Gui
21 {
22 
23 
26  class FontLoader
27  {
28  public:
29  FontLoader (ToUTF8::FromType encoding, const VFS::Manager* vfs, const std::string& userDataPath);
30  ~FontLoader();
31 
33  void loadBitmapFonts (bool exportToFile);
34  void loadTrueTypeFonts ();
35 
36  private:
39  std::string mUserDataPath;
40 
41  std::vector<MyGUI::ITexture*> mTextures;
42  std::vector<MyGUI::ResourceManualFont*> mFonts;
43 
45  void loadFont (const std::string& fileName, bool exportToFile);
46 
47  FontLoader(const FontLoader&);
48  void operator=(const FontLoader&);
49  };
50 
51 }
52 
53 #endif
void loadFont(const std::string &fileName, bool exportToFile)
Definition: fontloader.cpp:242
loads Morrowind's .fnt/.tex fonts for use with MyGUI and OSG
Definition: fontloader.hpp:26
void loadTrueTypeFonts()
Definition: fontloader.cpp:202
void operator=(const FontLoader &)
void loadBitmapFonts(bool exportToFile)
Definition: fontloader.cpp:179
FromType
Definition: to_utf8.hpp:11
ToUTF8::FromType mEncoding
Definition: fontloader.hpp:37
~FontLoader()
Definition: fontloader.cpp:158
FontLoader(ToUTF8::FromType encoding, const VFS::Manager *vfs, const std::string &userDataPath)
Definition: fontloader.cpp:148
std::vector< MyGUI::ITexture * > mTextures
Definition: fontloader.hpp:41
The main class responsible for loading files from a virtual file system.
Definition: manager.hpp:20
std::vector< MyGUI::ResourceManualFont * > mFonts
Definition: fontloader.hpp:42
const VFS::Manager * mVFS
Definition: fontloader.hpp:38
std::string mUserDataPath
Definition: fontloader.hpp:39