OpenMW
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
Public Member Functions | Private Member Functions | Private Attributes | List of all members
Gui::FontLoader Class Reference

loads Morrowind's .fnt/.tex fonts for use with MyGUI and OSG More...

#include <fontloader.hpp>

Collaboration diagram for Gui::FontLoader:

Public Member Functions

 FontLoader (ToUTF8::FromType encoding, const VFS::Manager *vfs)
 
 ~FontLoader ()
 
void loadAllFonts (bool exportToFile)
 

Private Member Functions

void loadFont (const std::string &fileName, bool exportToFile)
 
 FontLoader (const FontLoader &)
 
void operator= (const FontLoader &)
 

Private Attributes

ToUTF8::FromType mEncoding
 
const VFS::ManagermVFS
 
std::vector< MyGUI::ITexture * > mTextures
 
std::vector
< MyGUI::ResourceManualFont * > 
mFonts
 

Detailed Description

loads Morrowind's .fnt/.tex fonts for use with MyGUI and OSG

Note
The FontLoader needs to remain in scope as long as you want to use the loaded fonts.

Constructor & Destructor Documentation

Gui::FontLoader::FontLoader ( ToUTF8::FromType  encoding,
const VFS::Manager vfs 
)
Gui::FontLoader::~FontLoader ( )
Gui::FontLoader::FontLoader ( const FontLoader )
private

Member Function Documentation

void Gui::FontLoader::loadAllFonts ( bool  exportToFile)
Parameters
exportToFileexport the converted fonts (Images and XML with glyph metrics) to files?

Here is the call graph for this function:

void Gui::FontLoader::loadFont ( const std::string &  fileName,
bool  exportToFile 
)
private
Parameters
exportToFileexport the converted font (Image and XML with glyph metrics) to files?

Here is the call graph for this function:

Here is the caller graph for this function:

void Gui::FontLoader::operator= ( const FontLoader )
private

Member Data Documentation

ToUTF8::FromType Gui::FontLoader::mEncoding
private
std::vector<MyGUI::ResourceManualFont*> Gui::FontLoader::mFonts
private
std::vector<MyGUI::ITexture*> Gui::FontLoader::mTextures
private
const VFS::Manager* Gui::FontLoader::mVFS
private

The documentation for this class was generated from the following files: