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. |
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.
-
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.
-
Copy the EUDC font to a folder. The EUDC font has a .tte extension.
-
Call EnableEUDC(FALSE).
-
Modify the HKEY_CURRENT_USER\EUDCregistry 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 device.
The operating system automatically adds the EUDC font during startup if that font is already present in the registry.
See Also
Concepts
Enabling EUDCEnabling Asian Line Breaking
EUDC Character Codepoint Ranges