Merge pull request #996 from Azaezel/alpha41/furtherFontFixes

cut control chars for font population
This commit is contained in:
Brian Roberts 2023-03-18 15:03:37 -05:00 committed by GitHub
commit 81bf7fc538
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 2 deletions

View file

@ -125,7 +125,7 @@ Resource<GFont> GFont::create(const String &faceName, U32 size, const char *cach
Resource<GFont> ret; Resource<GFont> ret;
// If the file already exists attempt to load it // 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); ret = ResourceManager::get().load(path);

View file

@ -666,7 +666,8 @@ function populateAllFonts()
function delayedFontsPopulation(%font, %hieght, %fontNum) function delayedFontsPopulation(%font, %hieght, %fontNum)
{ {
echo("Font ["@ %fontNum @"] Generating "@ %font SPC %hieght); echo("Font ["@ %fontNum @"] Generating "@ %font SPC %hieght);
populateFontCacheRange(%font,%hieght,1,65535); populateFontCacheRange(%font,%hieght,32, 126);
populateFontCacheRange(%font,%hieght,160, 65535);
} }
//------------------------------------------------------------------------------ //------------------------------------------------------------------------------