Creating End User Defined Characters

Although Windows 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 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\EUDC registry 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.tte in 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 Windows CE–based device.