1
0

Readd simple text format to replace bitmap font XML

This commit is contained in:
sfan5
2021-11-09 22:19:05 +01:00
parent 81bae5b717
commit 9b0bc2aaed
3 changed files with 119 additions and 129 deletions

View File

@@ -1278,23 +1278,23 @@ IGUIFont* CGUIEnvironment::getFont(const io::path& filename)
}
IGUIFont* ifont=0;
#if 0
io::IReadFile *file = FileSystem->createAndOpenFile(filename);
if (file)
{
CGUIFont* font = new CGUIFont(this, filename);
ifont = (IGUIFont*)font;
// load the font
io::path directory;
core::splitFilename(filename, &directory);
if (!font->load(file, directory))
{
CGUIFont* font = new CGUIFont(this, filename);
ifont = (IGUIFont*)font;
// load the font
io::path directory;
core::splitFilename(filename, &directory);
if (!font->load(xml, directory))
{
font->drop();
font = 0;
ifont = 0;
}
font->drop();
font = 0;
ifont = 0;
}
#endif
file->drop();
}
if (!ifont)
{