CPENTRYHEADER

CPENTRYHEADER STRUC

cpeLength dw ? ;size of this structure, in bytes

cpeNext dd ? ;offset to next CPENTRYHEADER structure

cpeDevType dw ? ;device type

cpeDevSubtype db 8 dup(?) ;device name and font-file name

cpeCodepageID dw ? ;code-page identifier

cpeReserved db 6 dup(?) ;reserved

cpeOffset dd ? ;offset to font data

CPENTRYHEADER ENDS

The CPENTRYHEADER structure contains information about a code-page entry in a font file.

Fields

cpeLength

Specifies the size of the CPENTRYHEADER structure, in bytes. This field must be 28.

cpeNext

Contains the offset to the next CPENTRYHEADER structure, in bytes. For the last structure in the chain, this field must be zero.

cpeDevType

Specifies the type of the device for which the font is designed. This field is 1 if the device is a screen device, or 2 if the device is a printer.

cpeDevSubtype

Contains a character string that names the screen or printer type. This field also determines the name of the font file. For example, if the subtype is EGA, the font-file name is EGA.CPI. If the string contains fewer than eight characters, it is left-justified and padded with space characters (ASCII 20h).

cpeCodepageID

Identifies the code page for which the font was designed. This field can be one of the following values:

Value Meaning

437 United States
850 Multilingual (Latin I)
852 Slavic (Latin II)
860 Portuguese
863 Canadian-French
865 Nordic

cpeReserved

Reserved; must be zero.

cpeOffset

Contains the offset, in bytes, to the font data associated with this code page.