Put Khosrau font into index 0, at 18 point size. Used exclusively for Pandoran missions.

This commit is contained in:
Steve 2016-05-15 10:00:56 +01:00
parent b6513dc1f7
commit 7865a22072
2 changed files with 9 additions and 2 deletions

BIN
data/fonts/Khosrau.ttf Normal file

Binary file not shown.

View File

@ -276,8 +276,15 @@ void expireTexts(int all)
static void loadFont(int size)
{
SDL_LogMessage(SDL_LOG_CATEGORY_APPLICATION, SDL_LOG_PRIORITY_INFO, "loadFonts(%d)", size);
font[size] = TTF_OpenFont(getFileLocation("data/fonts/Roboto-Medium.ttf"), size);
if (size != 0)
{
font[size] = TTF_OpenFont(getFileLocation("data/fonts/Roboto-Medium.ttf"), size);
}
else
{
font[size] = TTF_OpenFont(getFileLocation("data/fonts/Khosrau.ttf"), 18);
}
}
static unsigned long hashcode(const char *str, int size)