From fd02044d205cd0a0a9657d8e1c5d927ef24896c9 Mon Sep 17 00:00:00 2001 From: AzaezelX Date: Fri, 17 Mar 2023 23:02:27 -0500 Subject: [PATCH] cut control chars for font population zip referenceablilty for font files --- Engine/source/gfx/gFont.cpp | 2 +- .../BaseGame/game/core/utility/scripts/helperFunctions.tscript | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/Engine/source/gfx/gFont.cpp b/Engine/source/gfx/gFont.cpp index d64e1066e..153d01c0a 100644 --- a/Engine/source/gfx/gFont.cpp +++ b/Engine/source/gfx/gFont.cpp @@ -125,7 +125,7 @@ Resource GFont::create(const String &faceName, U32 size, const char *cach Resource ret; // If the file already exists attempt to load it - if (Platform::isFile(path.getFullPath().c_str())) + if (Torque::FS::IsFile(path.getFullPath().c_str())) { ret = ResourceManager::get().load(path); diff --git a/Templates/BaseGame/game/core/utility/scripts/helperFunctions.tscript b/Templates/BaseGame/game/core/utility/scripts/helperFunctions.tscript index 770413aab..905100648 100644 --- a/Templates/BaseGame/game/core/utility/scripts/helperFunctions.tscript +++ b/Templates/BaseGame/game/core/utility/scripts/helperFunctions.tscript @@ -666,7 +666,8 @@ function populateAllFonts() function delayedFontsPopulation(%font, %hieght, %fontNum) { echo("Font ["@ %fontNum @"] Generating "@ %font SPC %hieght); - populateFontCacheRange(%font,%hieght,1,65535); + populateFontCacheRange(%font,%hieght,32, 126); + populateFontCacheRange(%font,%hieght,160, 65535); } //------------------------------------------------------------------------------