Partager via


Replacing Windows CE Default Fonts

Windows CE uses a default set of fonts that exist in ROM. You can replace these fonts by modifying the Windows CE registry. The replacement font must exist in the \Windows directory on the target device.

The following table shows the locations of the fonts that you can replace through the Windows CE registry.

Font location Registry key
System HKEY_LOCAL_MACHINE\SYSTEM\GDI\SysFnt
Menu bar HKEY_LOCAL_MACHINE\SYSTEM\GWE\Menu\BarFnt
Pop-up menu HKEY_LOCAL_MACHINE\SYSTEM\GWE\Menu\PopFnt
Out of Memory window HKEY_LOCAL_MACHINE\SYSTEM\GWE\OOMFnt

To change a font in the Windows CE registry

  1. Modify your Project.reg project registry file by adding the registry keys listed in the preceding table for the fonts you want to replace.

  2. Under each registry key, add the following variables and values:

    **"Nm"=**font-name

    **"Ht"=DWORD:**height

    **"It"=DWORD:**italics-flag

    **"Wt"=DWORD:**weight

    **"CS"=DWORD:**character-set

    The following table describes each of these variables.

    Variable Description
    font-name Font name, not including the extension. For example, to load the Arial font, Arial.ttf, use the following value for the font-name variable:

    "Nm"=Arial

    height Font height, in pixels.
    italics-flag Set to 1 for italics; 0 for no italics.
    weight Font weight, which can be one of the FW_* values.
    character-set Defines the character set, which can be one of the *_CHARSET values.
  3. Rebuild your image.

See Also

Font Linking Registry Settings | Replacing Fonts | Fonts Implementation Considerations | Fonts

Last updated on Wednesday, April 13, 2005

© 2005 Microsoft Corporation. All rights reserved.