Set the font of the wince System

Source: Internet
Author: User

Author: arm-WinCE

 

I haven't written a blog for a long time, and I feel a little confused about my friends who once read my blog. I have just returned from the United States. Due to project reasons, I have been working in the United States for the Spring Festival. Now I have some time to write a simple article to introduce the settings of the wince font.

 

The font settings of the wince system are implemented through the registry. Currently, the following system font settings are provided:

System font: HKEY_LOCAL_MACHINE/system/GDI/sysfnt

Menu font: HKEY_LOCAL_MACHINE/system/GWe/menu/barfnt

Pop-up window font: HKEY_LOCAL_MACHINE/system/GWe/menu/popfnt

Insufficient memory error Window Font: HKEY_LOCAL_MACHINE/system/GWe/oomfnt

 

The sub-item of each system font is the same, as shown below:

"Nm": Font names, such as Arial and Georgia.

"Ht": Font height

"It": Whether it is italic. 0 indicates normal, and 1 indicates italic.

"WT": Bold

"CS": The character level used. The default value is 0, which is ansi_charset. the character set is defined in wingdi. h.

 

Before using a font, make sure that your wince system supports this font. If not, add a font and select core OS> fonts in catalog items view, then select the font you want to add and re-compile the entire wince project.

 

After the project is compiled, open the project. reg file in the project compiled under the release directory and add the following configuration information for system font settings:

[HKEY_LOCAL_MACHINE/system/GDI/sysfnt]

"Nm" = "Georgia"Font Name

"Ht" = DWORD: fffffff4Font height

"It" = DWORD: 1Italics

"WT" = DWORD: 190

"CS" = DWORD: 0

[HKEY_LOCAL_MACHINE/system/GWe/menu/barfnt]

"Nm" = "tahoma"

"Ht" = DWORD: fffffff6

"It" = DWORD: 0

"WT" = DWORD: 2bc

"CS" = DWORD: 0

[HKEY_LOCAL_MACHINE/system/GWe/menu/popfnt]

"Nm" = "tahoma"

"Ht" = DWORD: fffffff4

"It" = DWORD: 0

"WT" = DWORD: 190

"CS" = DWORD: 0

[HKEY_LOCAL_MACHINE/system/GWe/oomfnt]

"Nm" = "tahoma"

"Ht" = DWORD: fffffff4

"It" = DWORD: 1

"WT" = DWORD: 190

"CS" = DWORD: 0

 

This configuration only changes the system font name, and supports italics. Then, you can make the image again. The specific effect is as follows:

 

We can see that the font has changed. wince also supports cleartype fonts. To implement this, you only need to add the following registry Configuration:

[HKEY_LOCAL_MACHINE/system/GDI/cleartype]

"Default" = DWORD: 00000001

After re-make image, the running effect is as follows:

 

Cleartype fonts are Microsoft's technology that can make the fonts look clearer and smoother. The effects of the above two images can indeed be compared.

 

Write it here today and try again later.

 

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.