2013-06-06 20:13:30 +00:00
|
|
|
#ifndef MWGUI_FONTLOADER_H
|
|
|
|
#define MWGUI_FONTLOADER_H
|
|
|
|
|
|
|
|
#include <components/to_utf8/to_utf8.hpp>
|
|
|
|
|
2014-09-12 02:27:23 +00:00
|
|
|
namespace Gui
|
2013-06-06 20:13:30 +00:00
|
|
|
{
|
|
|
|
|
|
|
|
|
|
|
|
/// @brief loads Morrowind's .fnt/.tex fonts for use with MyGUI and Ogre
|
|
|
|
class FontLoader
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
FontLoader (ToUTF8::FromType encoding);
|
2014-08-11 18:37:29 +00:00
|
|
|
|
|
|
|
/// @param exportToFile export the converted fonts (Images and XML with glyph metrics) to files?
|
|
|
|
void loadAllFonts (bool exportToFile);
|
2013-06-06 20:13:30 +00:00
|
|
|
|
|
|
|
private:
|
|
|
|
ToUTF8::FromType mEncoding;
|
|
|
|
|
2014-08-11 18:37:29 +00:00
|
|
|
/// @param exportToFile export the converted font (Image and XML with glyph metrics) to files?
|
|
|
|
void loadFont (const std::string& fileName, bool exportToFile);
|
2013-06-06 20:13:30 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
#endif
|