Important:
This is retired content. This content is outdated and is no longer being maintained. It is provided as a courtesy for individuals who are still using these technologies. This content may contain URLs that were valid when originally published, but now link to sites or pages that no longer exist.
A version of this page is also available for
4/8/2010

Although Windows Embedded CE defines thousands of characters, you might need to define your own set of characters. Use an end-user-defined character (EUDC) any time you need to define a character or glyph for a device. Always associate an EUDC with a double–byte character set (DBCS) and a TrueType font. When you create an EUDC, choose a reserved DCBS value. Applications use DBCS values to identify the EUDC. Windows Embedded CE uses DBCS values to locate the shape and style information in the corresponding TrueType font. The shape and style information specifies how to draw the EUDC.

To create an EUDC
  1. Choose a character value in the specified range or ranges of reserved characters.

  2. Use an EUDC editor to create the shape and style of the character.

  3. Add the shape and style information to the TrueType font in the entry that corresponds to the selected character value.

To associate an EUDC font with another font
  1. Copy the EUDC font to a folder. The EUDC font has a .tte extension.

  2. Call EnableEUDC(FALSE).

  3. Modify the HKEY_CURRENT_USER\EUDCregistry key.

  4. Create a subkey under HKEY_CURRENT_USER\EUDC.

  5. In the subkey that you created in step 4, enter the font path that contains the EUDCs.

    For example, enter Tahoma=\windows\test03.ttein the subkey to link the Tahoma font with the test03.tte font located in the \Windows directory.

  6. Call EnableEUDC(TRUE).

    Note:
    Before creating EUDC entries in the registry, enumerate the existing EUDC settings to ensure that you do not overwrite entries defined for the device.

The operating system automatically adds the EUDC font during startup if that font is already present in the registry.

See Also