瀏覽代碼

Merge pull request #996 from Azaezel/alpha41/furtherFontFixes

cut control chars for font population
Brian Roberts 2 年之前
父節點
當前提交
81bf7fc538
共有 2 個文件被更改,包括 3 次插入2 次删除
  1. 1 1
      Engine/source/gfx/gFont.cpp
  2. 2 1
      Templates/BaseGame/game/core/utility/scripts/helperFunctions.tscript

+ 1 - 1
Engine/source/gfx/gFont.cpp

@@ -125,7 +125,7 @@ Resource<GFont> GFont::create(const String &faceName, U32 size, const char *cach
    Resource<GFont> 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);
 

+ 2 - 1
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);
 }
 
 //------------------------------------------------------------------------------