Export (0) Print
Expand All

EUDC

The EUDC registry key contains one or more subkeys containing values defining the fonts associated with end-user-defined characters (EUDCs) for a given code page. It has the following registry location:

HKEY_CURRENT_USER\EUDC

The format is:

EUDC SystemDefaultEUDCFont=TrueTypeEUDCFontFileName TrueTypeFontTypeface=TrueTypeEUDCFontFileName

where:

SystemDefaultEUDCFontPredefined name used to set the system default font. There is no system default EUDC font unless this entry is explicitly specified.
TrueTypeFontTypefaceUser-defined name associated with a non-EUDC TrueType font.
TrueTypeEUDCFontFileNameString consisting of the file name of a separate EUDC font file. This file identifies a font to be associated with TrueTypeFontTypeface.

 

The following example shows the EUDC key for code page 932.


HKEY_CURRENT_USER\EUDC\932
SystemDefaultEUDCFont=EUDC.TTF
MS Mincho=MINEUDC.TTF
MS Gothic=GTEUDC.TTF


The following example sets the system default EUDC font to be Eudc.ttf and associates the separate EUDC fonts Mineudc.ttf and Goteudc.ttf with the font names MS Mincho and MS Gothic, respectively.


SystemDefaultEUDCFont=EUDC.TTF
MS Mincho=MINEUDC.TTF
MS Gothic=GOTEUDC.TTF


When the Windows code page (system ACP) associated with the language for non-Unicode programs matches the subkey, the GDI subsystem looks to the subkey value pairs to obtain display information about the character. It first looks for a name matching the current font. If there is none, it examines the SystemDefaultEUDCFont value. If no value is defined, GDI treats the character as undefined.

Note that the text itself does not have to be in the Windows code page. For example, assume that the code page has the identifier 1252, the default Windows code page for English. An application passes the single Unicode code point U+E000, in the Unicode private use area (PUA), to DrawText. In this case, GDI looks at the registry values under 1252 to obtain the font information for the character display properties.

Related topics

EUDC Registry Entries
EUDCCodeRange

 

 

Community Additions

ADD
Show:
© 2014 Microsoft