mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-01-06 00:55:50 +00:00
26 lines
434 B
C++
26 lines
434 B
C++
|
#ifndef MWGUI_FONTLOADER_H
|
||
|
#define MWGUI_FONTLOADER_H
|
||
|
|
||
|
#include <components/to_utf8/to_utf8.hpp>
|
||
|
|
||
|
namespace MWGui
|
||
|
{
|
||
|
|
||
|
|
||
|
/// @brief loads Morrowind's .fnt/.tex fonts for use with MyGUI and Ogre
|
||
|
class FontLoader
|
||
|
{
|
||
|
public:
|
||
|
FontLoader (ToUTF8::FromType encoding);
|
||
|
void loadAllFonts ();
|
||
|
|
||
|
private:
|
||
|
ToUTF8::FromType mEncoding;
|
||
|
|
||
|
void loadFont (const std::string& fileName);
|
||
|
};
|
||
|
|
||
|
}
|
||
|
|
||
|
#endif
|