Fixed incorrect warnings when reading fonts.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@6946 178a84e3-b1eb-0310-8ba1-8eac791a3b58
This commit is contained in:
parent
be7e8793b6
commit
d0acfaae3c
@ -85,7 +85,6 @@ void ScalableFont::doReadXmlFile(io::IXMLReader* xml)
|
|||||||
if (core::stringw(L"include") == xml->getNodeName())
|
if (core::stringw(L"include") == xml->getNodeName())
|
||||||
{
|
{
|
||||||
core::stringc filename = xml->getAttributeValue(L"file");
|
core::stringc filename = xml->getAttributeValue(L"file");
|
||||||
// FIXME: need to delete the created XML reader?
|
|
||||||
io::IXMLReader* included = file_manager->createXMLReader(
|
io::IXMLReader* included = file_manager->createXMLReader(
|
||||||
file_manager->getFontFile(filename.c_str()));
|
file_manager->getFontFile(filename.c_str()));
|
||||||
if (included != NULL)
|
if (included != NULL)
|
||||||
@ -190,13 +189,13 @@ void ScalableFont::doReadXmlFile(io::IXMLReader* xml)
|
|||||||
}
|
}
|
||||||
rectangle.LowerRightCorner.Y = val;
|
rectangle.LowerRightCorner.Y = val;
|
||||||
|
|
||||||
CharacterMap[ch] = Areas.size();
|
|
||||||
#ifdef DEBUG
|
#ifdef DEBUG
|
||||||
if (CharacterMap.find(ch) != CharacterMap.end())
|
if (CharacterMap.find(ch) != CharacterMap.end())
|
||||||
{
|
{
|
||||||
fprintf(stderr, "[ScalableFont] WARNING: Font conflict, two images have character %i\n", (int)ch);
|
fprintf(stderr, "[ScalableFont] WARNING: Font conflict, two images have character %i\n", (int)ch);
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
CharacterMap[ch] = Areas.size();
|
||||||
|
|
||||||
//std::cout << "Inserting character '" << (int)ch << "' with area " << Areas.size() << std::endl;
|
//std::cout << "Inserting character '" << (int)ch << "' with area " << Areas.size() << std::endl;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user