Changed fonts to lower case.

This commit is contained in:
Robert Osfield 2004-02-05 11:53:09 +00:00
parent 37ec69a397
commit bf6f27f6d3
2 changed files with 7 additions and 7 deletions

View File

@ -546,7 +546,7 @@ bool TXPArchive::loadTextStyles()
std::string line;
while (getline(fmapfile,line))
{
int ix = line.find_first_of('=');
unsigned int ix = line.find_first_of('=');
if (ix != std::string::npos)
{
std::string fontname = line.substr(0,ix);
@ -564,7 +564,7 @@ bool TXPArchive::loadTextStyles()
else
{
osg::notify(osg::NOTICE) << "txp:: No font map file found: " << fmapfname << std::endl;
osg::notify(osg::NOTICE) << "txp:: All fonts defaulted to ARIAL.TTF" << std::endl;
osg::notify(osg::NOTICE) << "txp:: All fonts defaulted to arial.ttf" << std::endl;
}
_fonts.resize(textStyleTable->GetNumStyle());
@ -578,7 +578,7 @@ bool TXPArchive::loadTextStyles()
if (!fontName) continue;
std::string fontfilename = fontmap[*fontName];
if (!fontfilename.length()) fontfilename = "ARIAL.TTF";
if (!fontfilename.length()) fontfilename = "arial.ttf";
osg::ref_ptr< osgText::Font > font = osgText::readFontFile(fontfilename);
_fonts[i] = font;

View File

@ -11,7 +11,7 @@ interface to create fonts based on their name (or at least I was not able to fin
- it uses the font file name instead
Ex:
Times New Roman = TIMES.TTF
Arial = ARIAL.TTF
Arial Narrow = ARIALN.TTF
Courier New = COUR.TTF
Times New Roman = times.ttf
Arial = arial.ttf
Arial Narrow = arian.ttf
Courier New = cour.ttf