mnf
King
- Joined
- Jan 31, 2006
- Messages
- 659
mikezang said:Unzip files as below, then put *.tga files to folder
~\My Documents\My Games\Sid Meier's Civilization 4\CustomAssets\res\fonts
put *.xml files to folder
~\My Documents\My Games\Sid Meier's Civilization 4\CustomAssets\xml\text
Restart civ4, you will see some Chinese on game screen, but you still use default ttf font file!
You're testing it the wrong way. The reason why you can see those Chinese characters, is because you changed the xml files too. Those description are in Chinese, because your new XML text is so written.
The right way to test, is to start with the original Civ4, and then change only the TTF font. Then you will see that those button tooltips are now using the new TTF font.
I looked in more detail, and I see that the majority of all in-game text, starting from the main menu, to all menu items, to in-game tooltips, all the advisor screens, the civlopedia, the logs, the diplomacy screens and so on, all these use the TTF file. Indeed it would be weird not to.
So where are the TGA bitmapped fonts used? The only place I managed to find, is the city information labels. Here's such a screenshot:
http://home.so-net.net.tw/alrescha/Civ4ScreenShot0202.JPG
What I've done here is to change only the Civ4Theme_Common.thm file as I described previously, to use one of my funny fonts.
You will see that the tooltip description for the "Go-to" button is in the funny font I chose specifically to demonstrate changing fonts. Only the city name "Rostov", the build queue item "Courthouse" and the cultural defense "+40%" are from the TGA fonts.
It is clear that once the in-game text display routines are made truly unicode, localization becomes (almost) straight-forward.
Why then, did they use such old-fashioned bitmapped text display for the city info labels? I wouldn't know. Maybe it is to accommodate the info icons (religion icons and stuff), but this will turn out to be one of the obstacles that'll require a patch to fix, before the city info labels can display non latin alphabets.