现在的位置: 首页 > 综合 > 正文

WINCE6 不能显示中文的问题,中文乱码,原因:选择了Raster Fonts Support(SYSGEN_GDI_RASTERFONT)

2013年01月04日 ⁄ 综合 ⁄ 共 1661字 ⁄ 字号 评论关闭

在CE5上如下添加就可以显示中文的界面,然而在CE6上却没有。
1.先打开目标的工程文件,单击“Project”菜单,再单击“Properties->Configuration Properties-> Locale 先执行 “Clear All”,
Locales:将 “中文(中国)”打勾
Default languare:选择“中文(中国)”
 
2.在Catalog View添加Core OS-->CEBASE-->International-->Locale Specific support-->Chinese (Simplified)-->Fonts-->SimSun & NSimSum(choose 1)--> SimSun & NSimSun (Subset 2_50):字体大小是3M左右,不用默认的,默认的字体太大了。

 

3.在Catalog View添加
Core OS-->CEBASE-->International-->Locale Specific support-->Chinese (Simplified)-->GB18030 Data Vonverter 和"Monotype Imaging AC3 Font Compression"
前者为汉字编码标准集转换器,后者为使用AC3对字库进行压缩。

 

4. 在Catalog View添加
Core OS->CEBASE->International->Local Services(Choose 1)-> National Language Support (NLS)
 
仔细查找原因,最终发现是添加了
Core OS -->CEBASE -->Graphics and Multimedia Technologies -->Graphics -->Raster Fonts Support
去掉就可以正常显示中文的界面了。即加入点阵字体支持后,就会屏蔽掉几乎所有的TrueType字体。

 

微软的说明如下

 

SYSGEN_GDI_RASTERFONT

When this variable is set, support for raster fonts is enabled. A raster font glyph is a tiny bitmap that represents a single character size. Because the bitmaps for each glyph in a raster font are designed for a specific resolution on a particular device, raster fonts are generally considered device-dependent.

Windows Embedded CE supports TrueType and raster font technologies, but only one font technology can be used on a specified OS design. Generally, Windows Embedded CE uses Tahoma as the default system font. There is no default font for Korean, Japanese, Simplified Chinese or Traditional Chinese, so you must load at least one font so that your application can have text output.

After you choose TrueType or raster font technology during OS design, you cannot change technologies with an application.TrueType is the default in Windows Embedded CE, but you can implement raster technology in your OS design by adding the Raster Fonts Support Catalog item from the Platform Builder Catalog to your OS design.

抱歉!评论已关闭.