更新系统字库:例如要在WinCE5.0加入微软雅黑字体的支持。
第一步:增加如下注册表
[HKEY_LOCAL_MACHINE/SOFTWARE/Microsoft/FontPath]
"FontPath"="// Windows " ; 字库文件所在目录
[HKEY_LOCAL_MACHINE/SYSTEM/GDI]
"FontLinkMethods"=dword:1
[HKEY_LOCAL_MACHINE/SOFTWARE/Microsoft/FontLink/SystemLink]
"Tahoma"=" //Windows//simsun.ttc,NSimSun "
"Courier New"=" //Windows//simsun.ttc,NSimSun "
"Arial"=" //Windows//simsun.ttc,NSimSun "
"Times New Roman"=" //Windows//simsun.ttc,NSimSun "
"Symbol"=" //Windows//simsun.ttc,NSimSun "
第二步:BIB文件中增加字库
simsun.ttc $(_WINCEROOT)/public/common/oak/files/simsun.ttc NK SHU
第三步:MAKE OK
字库存储路径更改:
由于字库置于NK中,体积偏大,可按以下步骤将字库放置在SD卡中,或NAND FLASH中。
第一步:注册表改动如下。红色部分更改成字库所以路径
[HKEY_LOCAL_MACHINE/SOFTWARE/Microsoft/FontPath]
"FontPath"="// Windows " ; 字库文件所在目录
[HKEY_LOCAL_MACHINE/SYSTEM/GDI]
"FontLinkMethods"=dword:1
; @CESYSGEN IF !GWES_DECOMPDRV
[HKEY_LOCAL_MACHINE/SOFTWARE/Microsoft/FontLink/SystemLink]
"Tahoma"=" //Windows//simsun.ttc,NSimSun "
"Courier New"=" //Windows//simsun.ttc,NSimSun "
"Arial"=" //Windows//simsun.ttc,NSimSun "
"Times New Roman"=" //Windows//simsun.ttc,NSimSun "
"Symbol"=" //Windows//simsun.ttc,NSimSun "
; @CESYSGEN ENDIF !GWES_DECOMPDRV
第二步:BIB文件中删除字库,以免编入内核中
; simsun.ttc $(_WINCEROOT)/public/common/oak/files/simsun.ttc NK SHU
第三步:MAKE OK
存在的问题:SD卡中的字库可以事先COPY进去,但NAND FLASH下的字库如何COPY进去,需在升级中进得考虑。
本文来自CSDN博客,转载请标明出处: http://blog.csdn.net/ok138ok/archive/2009/07/18/4359468.aspx