Creating End User Defined Characters (Windows CE 5.0)
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
- Choose a character value in the specified range or ranges of reserved characters.
- Use an EUDC editor to create the shape and style of the character.
- 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
Copy the EUDC font to a folder.
The EUDC font has a .tte extension.
Call EnableEUDC (FALSE).
Modify the HKEY_CURRENT_USER\EUDC registry key.
Create a subkey under HKEY_CURRENT_USER\EUDC.
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.
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.
The operating system automatically adds the EUDC font during startup if that font is already present in the registry.
Send Feedback on this topic to the authors