diff --git a/src/Game.c b/src/Game.c index 2e3bbed0f..21f7f49e0 100644 --- a/src/Game.c +++ b/src/Game.c @@ -384,10 +384,10 @@ static void Game_LoadGuiOptions(void) { Game_UseClassicOptions = Options_GetBool(OPT_CLASSIC_OPTIONS, false) || Game_ClassicMode; Game_TabAutocomplete = Options_GetBool(OPT_TAB_AUTOCOMPLETE, false); - Options_Get(OPT_FONT_NAME, &Game_FontName, "Arial"); + Options_Get(OPT_FONT_NAME, &Game_FontName, Font_DefaultName); if (Game_ClassicMode) { Game_FontName.length = 0; - String_AppendConst(&Game_FontName, "Arial"); + String_AppendConst(&Game_FontName, Font_DefaultName); } /* TODO: Handle Arial font not working */ diff --git a/src/Platform.c b/src/Platform.c index 76ba3c5b1..543aa8138 100644 --- a/src/Platform.c +++ b/src/Platform.c @@ -33,8 +33,9 @@ #define Win_Return(success) ((success) ? 0 : GetLastError()) HANDLE heap; -char* Platform_NewLine = "\r\n"; -char Directory_Separator = '\\'; +char* Platform_NewLine = "\r\n"; +char Directory_Separator = '\\'; +char* Font_DefaultName = "Arial"; ReturnCode ReturnCode_FileShareViolation = ERROR_SHARING_VIOLATION; ReturnCode ReturnCode_FileNotFound = ERROR_FILE_NOT_FOUND; @@ -70,9 +71,10 @@ ReturnCode ReturnCode_SocketWouldBlock = WSAEWOULDBLOCK; #define Nix_Return(success) ((success) ? 0 : errno) pthread_mutex_t event_mutex; - char* Platform_NewLine = "\n"; -char Directory_Separator = '/'; +char Directory_Separator = '/'; +char* Font_DefaultName = "Century Schoolbook L Roman"; + ReturnCode ReturnCode_FileShareViolation = 1000000000; /* TODO: not used apparently */ ReturnCode ReturnCode_FileNotFound = ENOENT; ReturnCode ReturnCode_NotSupported = EPERM; diff --git a/src/Platform.h b/src/Platform.h index 9479b4598..a06ab2828 100644 --- a/src/Platform.h +++ b/src/Platform.h @@ -16,7 +16,8 @@ typedef int SocketPtr; #endif extern char* Platform_NewLine; /* Newline for text */ -extern char Directory_Separator; +extern char Directory_Separator; +extern char* Font_DefaultName; extern ReturnCode ReturnCode_FileShareViolation; extern ReturnCode ReturnCode_FileNotFound; extern ReturnCode ReturnCode_NotSupported;