解决Wince6.0界面显示乱码

在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.

你可能感兴趣的:(解决Wince6.0界面显示乱码)