mirror of https://github.com/OpenMW/openmw.git
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
29 lines
677 B
C++
29 lines
677 B
C++
12 years ago
|
#ifndef MWGUI_FONTLOADER_H
|
||
|
#define MWGUI_FONTLOADER_H
|
||
|
|
||
|
#include <components/to_utf8/to_utf8.hpp>
|
||
|
|
||
10 years ago
|
namespace Gui
|
||
12 years ago
|
{
|
||
|
|
||
|
|
||
|
/// @brief loads Morrowind's .fnt/.tex fonts for use with MyGUI and Ogre
|
||
|
class FontLoader
|
||
|
{
|
||
|
public:
|
||
|
FontLoader (ToUTF8::FromType encoding);
|
||
11 years ago
|
|
||
|
/// @param exportToFile export the converted fonts (Images and XML with glyph metrics) to files?
|
||
|
void loadAllFonts (bool exportToFile);
|
||
12 years ago
|
|
||
|
private:
|
||
|
ToUTF8::FromType mEncoding;
|
||
|
|
||
11 years ago
|
/// @param exportToFile export the converted font (Image and XML with glyph metrics) to files?
|
||
|
void loadFont (const std::string& fileName, bool exportToFile);
|
||
12 years ago
|
};
|
||
|
|
||
|
}
|
||
|
|
||
|
#endif
|