diff --git a/data/fonts/Khosrau.ttf b/data/fonts/Khosrau.ttf new file mode 100644 index 0000000..f958d44 Binary files /dev/null and b/data/fonts/Khosrau.ttf differ diff --git a/src/draw/text.c b/src/draw/text.c index abfa6da..6b94941 100644 --- a/src/draw/text.c +++ b/src/draw/text.c @@ -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)