Readd simple text format to replace bitmap font XML
This commit is contained in:
@@ -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)
|
||||
{
|
||||
|
Reference in New Issue
Block a user