One of my goals is to have awesome Unicode coverage. For quite some time, MMiX.Me has been using the Unicode true type font DejaVuSans.ttf, roughly 3000 glyphs. However, it doesn't cover CJK - Chinese, Japanese, Korean. So in a bold step towards the awesomeness we now load Code2000.ttf which covers er, umm, "everything". That's when I noted: It takes quite some time to load 53000 glyphs, and even longer to stretch them (ie., when you resize the main window and the font's AutoScaled flag is set to true). [I'm using CEGUI 0.7.4 and FreeType 2.3.11(Ogre3D 1.7.3)]
It just so happens that we were loading three sizes of the font originally, and this is (as far as I can see) unnecessary - we will manage with one. And as it turns out, we won't be stretching any fonts either ( AutoScaled="false"). But I'm still left with ONE big font load. One load takes my computer almost 5 seconds, and I estimated the font stretch to be more than 10 seconds (so resizing the main window took more than 30 seconds with NO action). Again, the stretching issue is obsolete, for me.
My computer is a 2.8 GHz "Lynnfield" (Quad Core i5), but others will be slower, of that I'm sure
(The CEGUI.log snippet looks funny, but I just modified the DejaVuSans-N.font files to point to code2000.ttf. Note the times)
Code: Select all
26/10/2011 20:57:48 (Std) Started creation of Font from XML specification:
26/10/2011 20:57:48 (Std) ---- CEGUI font name: DejaVuSans-10
26/10/2011 20:57:48 (Std) ---- Font type: FreeType
26/10/2011 20:57:48 (Std) ---- Source file: code2000.ttf in resource group: (Default)
26/10/2011 20:57:48 (Std) ---- Real point size: 10
26/10/2011 20:57:52 (Info) Successfully loaded 53068 glyphs
26/10/2011 20:57:52 (Info) Finished creation of Font 'DejaVuSans-10' via XML file. (0B0FB158)
26/10/2011 20:57:52 (Std) Started creation of Font from XML specification:
26/10/2011 20:57:52 (Std) ---- CEGUI font name: DejaVuSans-8
26/10/2011 20:57:52 (Std) ---- Font type: FreeType
26/10/2011 20:57:52 (Std) ---- Source file: code2000.ttf in resource group: (Default)
26/10/2011 20:57:52 (Std) ---- Real point size: 8
26/10/2011 20:57:56 (Info) Successfully loaded 53068 glyphs
26/10/2011 20:57:56 (Info) Finished creation of Font 'DejaVuSans-8' via XML file. (0B0F79A0)
26/10/2011 20:57:56 (Std) Started creation of Font from XML specification:
26/10/2011 20:57:56 (Std) ---- CEGUI font name: DejaVuSans-14
26/10/2011 20:57:56 (Std) ---- Font type: FreeType
26/10/2011 20:57:56 (Std) ---- Source file: code2000.ttf in resource group: (Default)
26/10/2011 20:57:56 (Std) ---- Real point size: 14
26/10/2011 20:58:01 (Info) Successfully loaded 53068 glyphs
26/10/2011 20:58:01 (Info) Finished creation of Font 'DejaVuSans-14' via XML file. (0B0D8520)
Thanks/Linus