Removed LinLibertine font, instead opting for a system default.

This commit is contained in:
Aloshi 2012-11-12 09:21:35 -06:00
parent 0c52bd2a20
commit 3e522998ce
4 changed files with 4 additions and 13 deletions

View file

@ -5,9 +5,6 @@ Programming
Resources
=========
LinLibertine_R.ttf
The Libertine Font Project - http://www.linuxlibertine.org/
PugiXML
http://pugixml.org/

Binary file not shown.

View file

@ -82,20 +82,14 @@ namespace Renderer {
std::cout << "loading fonts...";
std::string fontPath = "LinLibertine_R.ttf";
std::string fontPath = Font::getDefaultPath();
//make sure our font exists
if(!boost::filesystem::exists(fontPath))
{
//std::cout << "Default font \"" << fontPath << "\" does not exist! Attempting to default to a system font...";
//fontPath = "/usr/share/fonts/truetype/ttf-dejavu/DejaVuSans.ttf";
fontPath = Font::getDefaultPath();
if(!boost::filesystem::exists(fontPath))
{
std::cerr << "System font \"" << fontPath << "\" wasn't found either! Well, you're kind of screwed. Sorry.\n";
std::cerr << "System font \"" << fontPath << "\" wasn't found! Well, you're kind of screwed. Sorry. Report this to Aloshi, please.\n";
return;
}
}
float fontSizes[] = {0.035, 0.045, 0.1};
for(unsigned int i = 0; i < 3; i++)

View file

@ -18,7 +18,7 @@ GuiList<listType>::GuiList(int offsetX, int offsetY, Font* font)
mFont = font;
mSelectorColor = 0x000000FF;
mSelectedTextColorOverride = 0x0000FF;
mSelectedTextColorOverride = 0x0000FFFF;
mScrollSound = NULL;
mDrawCentered = true;