WINCE6 has been used in the last two weeks. Because of product requirements, the application software must support simplified and traditional Chinese characters. It is very easy to use. You only need to add the corresponding font. For example, add a simplified Font:
CEBASE-> International-> Locale Specific Support-> Chinese (Simplified), select SimSun & NSimSun (Subset 2_50) as the font, this is usually enough, while SimSun & NSimSun is too large, it is about 10 MB, and the GB18030 Data Converter and Monotype Imaging AC3 Font Compression (the Font is compressed to reduce the NK size) are hooked. After compilation, simplified Chinese characters are displayed normally, but traditional Chinese characters are displayed as boxes, because traditional Chinese characters are not added.
Add traditional Chinese Character Library:
CEBASE-> International-> Locale Specific Support-> Chinese (Traditional), select MingLiU & PMingLiU (Subset 2_70), and check the Monotype Imaging AC3 Font Compression. Compilation is burned in, and traditional Chinese characters can be displayed normally. At this point, I thought it was a success. The problem came out and I found that simplified Chinese characters could not be properly displayed. So I wondered why I should add the simplified Chinese character library to the system. Why can't I display it ?.....
Remove the traditional Chinese Character Library and show it in simplified Chinese characters. I initially thought that it was covered by the Registry and found that the Common. reg under the project had a question:
[HKEY_LOCAL_MACHINE \ SOFTWARE \ Microsoft \ FontLink \ SystemLink]
"Tahoma" = "\ Windows \ simsun. ac3, NSimSun"
"Courier New" = "\ Windows \ simsun. ac3, NSimSun"
"Arial" = "\ Windows \ simsun. ac3, NSimSun"
"Times New Roman" = "\ Windows \ simsun. ac3, NSimSun"
"Symbol" = "\ Windows \ simsun. ac3, NSimSun"
; @ Cesysgen endif FONTS_AC3_VERSIONS
[HKEY_LOCAL_MACHINE \ SOFTWARE \ Microsoft \ FontLink \ SkipTable]
"Tahoma" =" 005c , 00a 5, 007e, 0391 -03c 9,2026, 2116,221 , 25a 0-25ff"
"Arial" =" 005c "
"Courier New" =" 005c "
; @ Cesysgen endif FONTS_SIMSUN
; @ Cesysgen if FONTS_MINGLIU | FONTS_MINGLIU_2_70 | FONTS_MINGLIU_2_80 | FONTS_MINGLIU_2_90
[HKEY_LOCAL_MACHINE \ SYSTEM \ GDI]
"FontLinkMethods" = dword: 1
; @ Cesysgen if! FONTS_AC3_VERSIONS
; @ Cesysgen endif! FONTS_AC3_VERSIONS
; @ Cesysgen if FONTS_AC3_VERSIONS
[HKEY_LOCAL_MACHINE \ SOFTWARE \ Microsoft \ FontLink \ SystemLink]
"Tahoma" = "\ Windows \ mingliu. ac3, PMingLiU"
"Courier New" = "\ Windows \ mingliu. ac3, PMingLiU"
"Arial" = "\ Windows \ mingliu. ac3, PMingLiU"
"Times New Roman" = "\ Windows \ mingliu. ac3, PMingLiU"
"Symbol" = "\ Windows \ mingliu. ac3, PMingLiU"
; @ Cesysgen endif FONTS_AC3_VERSIONS
Note that the [HKEY_LOCAL_MACHINE \ SOFTWARE \ Microsoft \ FontLink \ SystemLink] key names are the same. The front is the simplified font library and the back is the traditional font library, then we can be sure that the subsequent registry will overwrite the previous one. Khan ......, Is it a ms bug?
Finally, we can see it in the PB help document.
If your run-time image has des more than one East Asian locale, you must modify the values under the SystemLink registry key in common. reg to include the font files for all of your targeted locales. you must list all of the font files by using a semi-colon separator as shown in the following example:
[HKEY_LOCAL_MACHINE \ SOFTWARE \ Microsoft \ FontLink \ SystemLink]
"Arial" = "\ Windows \ simsun. ttc, NSimSun; \ Windows \ msgothic. ttc, ms ui Gothic"
"Times New Roman" = "\ Windows \ simsun. ttc, NSimSun; \ Windows \ msgothic. ttc, ms ui Gothic"
"Tahoma" = "\ Windows \ simsun. ttc, NSimSun; \ Windows \ msgothic. ttc, ms ui Gothic"
"Courier New" = "\ Windows \ simsun. ttc, NSimSun; \ Windows \ msgothic. ttc, ms ui Gothic"
"Symbol" = "\ Windows \ simsun. ttc, NSimSun; \ Windows \ msgothic. ttc, ms ui Gothic"
Clear the cause of the problem and change the Registry
[HKEY_LOCAL_MACHINE \ SOFTWARE \ Microsoft \ FontLink \ SystemLink]
"Tahoma" = "\ Windows \ simsun. ac3, NSimSun; \ Windows \ mingliu. ac3, PMingLiU"
"Courier New" = "\ Windows \ simsun. ac3, NSimSun; \ Windows \ mingliu. ac3, PMingLiU"
"Arial" = "\ Windows \ simsun. ac3, NSimSun; \ Windows \ mingliu. ac3, PMingLiU"
"Times New Roman" = "\ Windows \ simsun. ac3, NSimSun; \ Windows \ mingliu. ac3, PMingLiU"
"Symbol" = "\ Windows \ simsun. ac3, NSimSun; \ Windows \ mingliu. ac3, PMingLiU"
OK. No problem. It can be displayed normally in simplified and Traditional Chinese.
---------------------------------------------------------------------
Respect others' labor results, reprinted please indicate the source http://www.cnblogs.com/feishanm