I made some instructions about adding Chinese fonts to iPhone OS 2.x. But iPhone OS 3.0 has come out for a month, something has changed for 3.0 and the hack files are no longer bullet-proof. (Actually I suffered from restoring the firmware after I directly substituted the files.)
The whole process of the last article still works and the locations are the same. However, 3.0 OS weighs a bit more, so a better idea is to move the font folder out of the system partition. You should know that your home partition (for apps, videos, and music) is at least 6GB for 8GB models so it’s basically big enough. But the system partition is only 500MB with no more than 100MB left available which is not so sufficient for Chinese fonts which normally takes more than 10MBs. I’ll show some terminal stuffs for this step. You better know what these are if you really do this. I assume you have jail-broken your device and logged on with proper privilege.
cp -r /System/Library/Fonts/Cache /var/mobile/Documents #Copy fonts out mv /System/Library/Fonts/Cache /System/Library/Fonts/Cache.bak #No hurry ln -s /var/mobile/Documents/Cache /System/Library/Fonts/Cache #Link to the outer space ls /System/Library/Fonts/Cache #If fonts are still there, it's OK to move on rm -r /System/Library/Fonts/Cache.bak #Clean up
And you just copy the fonts to the Cache folder and modify the CGFontCache.plist. If you have problems just refer to the original article.
And some people asked for a better font with GBK support, and I found STZhongSong is a nice font. (It’s bigger of course).
我原来有一篇文章介绍如何在iPhone OS 2.x上增加中文字体的。3.0的修改方法大概相同,只不过你不能直接用原来2.x的文件直接替换了(我就是替换了之后系统出问题重刷了一次)。另外就是由于3.0占用的空间更大了,原来的系统分区有点不够用。加上中文字体如果要字比较全就要10M以上了,还是不要挤占那点空间了,我在上面介绍了一下如何把字体文件夹移出系统分区。你如果能看懂原理就去试试,如果不行的话就不要试了,还是有风险的。另外常有人希望有一个支持GBK的字体,我找了华文中宋的字体,似乎还比较全,至少我看的书里面还没发现有漏字的。如果你信任我的话就直接下载下面好了。

3 Comments
pto2k:
October 29, 2010每次Restore过后都要来这里看一下…
Nasone:
April 20, 2010要是谁能 mod 一下 fontswap 让它支持中文就好了.. 恨。
Nasone:
April 20, 2010我要是早点看到这篇的话想必我也不用 restore 折腾半天了..