最近项目中需要支持中(简繁)日韩英多种语言,在网上找了很多解决办法,最后发现还是MSDN最好。
- [HKEY_LOCAL_MACHINE/SYSTEM/GDI/GLYPHCACHE]
- "limit"=dword:5000
- [HKEY_LOCAL_MACHINE/SYSTEM/GDI]
- "FontLinkMethods"=dword:1
- [HKEY_LOCAL_MACHINE/SOFTWARE/Microsoft/FontLink/SystemLink]
- "Tahoma"="//Windows//simsun.ac3,NSimSun;//Windows//gulim.ac3,Gulim;//Windows//mingliu.ac3,PMingLiU"
- "Courier New"="//Windows//simsun.ac3,NSimSun;//Windows//gulim.ac3,Gulim;//Windows//mingliu.ac3,PMingLiU"
- "Arial"="//Windows//simsun.ac3,NSimSun;//Windows//gulim.ac3,Gulim;//Windows//mingliu.ac3,PMingLiU"
- "Times New Roman"="//Windows//simsun.ac3,NSimSun;//Windows//gulim.ac3,Gulim;//Windows//mingliu.ac3,PMingLiU"
- "Symbol"="//Windows//simsun.ac3,NSimSun;//Windows//gulim.ac3,Gulim;//Windows//mingliu.ac3,PMingLiU"
- [HKEY_LOCAL_MACHINE/SOFTWARE/Microsoft/FontLink/SkipTable]
- "Tahoma"="005c,00a5,007e,0391-03c9,2026,2116,221a,25a0-25ff"
- "Arial"="005c"
- "Courier New"="005c"
MSDN相关解释:http://technet.microsoft.com/zh-cn/library/ms903933(en-us).aspx
如果想把字体放到SD卡中:
Step1:
向输出路径下的Common.reg文件添加如下内容,并更改所有的FontLink
- [HKEY_LOCAL_MACHINE/SOFTWARE/Microsoft/FontPath]
- "FontPath"="//Storage Card//fonts" ;
Step2:
在输出路径下的Common.bib文件中,取消对字体文件的打包:
- ; @CESYSGEN IF FONTS_GULIM_1_50
- ; gulim.ac3 $(_WINCEROOT)/public/common/oak/files/gulim_1_50.ac3 NK SHU
- ; @CESYSGEN ENDIF
Step3:
makebin