Put Khosrau font into index 0, at 18 point size. Used exclusively for Pandoran missions.
This commit is contained in:
parent
b6513dc1f7
commit
7865a22072
Binary file not shown.
|
@ -276,8 +276,15 @@ void expireTexts(int all)
|
||||||
static void loadFont(int size)
|
static void loadFont(int size)
|
||||||
{
|
{
|
||||||
SDL_LogMessage(SDL_LOG_CATEGORY_APPLICATION, SDL_LOG_PRIORITY_INFO, "loadFonts(%d)", 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)
|
static unsigned long hashcode(const char *str, int size)
|
||||||
|
|
Loading…
Reference in New Issue