Each time you customize a Chinese system, NK is always about 10 MB larger than that of English. It also takes time to copy the kernel to the memory during bootloader startup, and it also occupies a lot of memory, it's a waste of about 10 MB of memory left for the system and application! I have studied it and also referred to the online materials. The following is a summary of how to reduce the size of the Chinese font and place the font on the external storage. The core idea is to reduce the size of the selected Chinese font simsun & nsimsun (sysgen_fonts_simsun) to simsun & nsimsun (subset 2_50) (sysgen_fonts_simsun_2_50. In the registry, [HKEY_LOCAL_MACHINE \ SOFTWARE \ Microsoft \ fontpath] and [HKEY_LOCAL_MACHINE \ SOFTWARE \ Microsoft \ fontlink \ systemlink] Change the storage location of simsun. AC3 or simsun. TTC.
I. Reduce the font size of Chinese Characters
1.Open the target project file, click the "Platform" menu, and then click "Settings ...", Run "clear ",
Locales: Tick "English (USA)" "Chinese (China )"
Default values are: Select "Chinese (China )"
After step 2 is completed, the default font of xinsong is used in the project.
2Return to catalog and select "core OS"> "international"> "locale spectific support"
-> "Chinese [Simplified]"
▲Agfa AC3 font Compression: Use AC3 to compress the font library. If the CPU usage is greater than Hz, we recommend that you select it. You can choose whether to select the font based on your needs.
▲Simsun & nsimsun (subset 2_50): The font size is about 3 MB. The best choice for wince is subset 2_50. Therefore, replace the original Chinese font with the (subset 2_50) Chinese font and select simsun & nsimsun (subset 2_50 ), right-click to add the component, and the original font will be replaced. This has no effect on Chinese display and achieves kernel slimming. Optional;
Supplement: in the absence of compressed fonts, the default font size of the New Song Dynasty is more than 10 MB, and the file is simsun. if you select subset 2_50 and the file is simsun_2_50.ttc, the font size is close to 3 MB, which is also the key to crop the wince volume. Of course, if you select AC3 to compress the font library, which size can be further reduced. The compressed file is simsun_2_50.ac3, And the size is less than 2 MB.
Directory of the font library: D: \ wince500 \ public \ common \ oak \ files
▲Gb18030 data converter: Chinese character encoding standard set converter, must be selected
3And re-run sysgen. In this way, the system can display Chinese characters normally without worrying about the huge NK volume.
2. Save the font to the external storage to reduce the kernel size.
There are a lot of introductions on the Internet to save the font to the SD card, Flash, and so on to reduce the size of the kernel, but note that before loading the display driver, you must load the driver of the storage device that saves the font, otherwise, the Chinese font cannot be loaded. The box is displayed after the system starts. Save the font to the storage device in the registry because the driver of the storage device has been loaded for a long time.
While I am using a hard disk, the Registry needs to be modified as follows
1Add the following in platform. Reg:
[HKEY_LOCAL_MACHINE \ SYSTEM \ GDI]
"Fontlinkmethods" = DWORD: 1
[HKEY_LOCAL_MACHINE \ SOFTWARE \ Microsoft \ fontpath]
"Fontpath" = "\ Hard Disk ";Directory of the font file
[HKEY_LOCAL_MACHINE \ SOFTWARE \ Microsoft \ fontlink \ systemlink]
"Tahoma" = "\ Hard Disk \ simsun. Ac3, nsimsun ";I use a compressed font, so it is simsun. ac3.
"Courier New" = "\ Hard Disk \ simsun. Ac3, nsimsun"
"Arial" = "\ Hard Disk \ simsun. Ac3, nsimsun"
"Times New Roman" = "\ Hard Disk \ simsun. Ac3, nsimsun"
"Symbol" = "\ Hard Disk \ simsun. Ac3, nsimsun"
2Delete simsun. AC3 from the common. bib file in the project directory, and confirm that the file will not be compiled into the kernel.
3Copy the file to hard disk, and then startJustOK.
Character libraries, which can be separated by commas. For example:
"Tahoma" = "\ Boot Disk \ windows \ simsun. TTC, nsimsun; \ Boot Disk \ Windows \ mingliu. TTC, pmingliu"