Code Page Definition file
The Code Page Definition file maps the IBM® AFP™ code page name to its code page global identifier (CPGID) and to a Windows® character set.
The section header [CODEPG] is followed by a list of
AFP code pages and their parameters. The first parameter in each line
is the AFP code page global identifier that maps to a Code Page Map
file. (See Code Page Map files for more information about mapping
code pages.) The second parameter is the Windows character set that you decide is
the best match for your AFP code page. The last line gives the default
parameter values to be used when a default is required.
You can use the NONSTD value to allow the name and size of a
font to fully describe the logical font. If the specified font name
does not exist, a font from any character set can be substituted for
this specified font.
Figure 16. Example of the Code Page Definition file (CPDEF.FNT) contents
[CODEPG]
;codepage = cpgid
T1DCDCFS=1003
T1DEBASE=2058
T1D0BASE=2063
T1D0GP12=2085
T1GI0395=2079
T1GPI363=2066
T1V10037=37
T1V10273=273
T1000290=290
T1000310=310
T1000423=423
T1000905=905
DEFAULT =361
Attribute | Possible Values | Shipped Default |
---|---|---|
Code Page Global Identifier | IBM-defined CPGID or your own defined CPGID within this range: 65280 - 65534 | 361 |
Code Page Definition file rules
- Parameters must be separated by a comma. Table 12 lists the possible values and shipped default values for each parameter.
- Only the first parameter (code page identifier) is required.
- If you create your own code page, you must assign it a unique code page identifier. Leading zeros are not valid. (You can use an IBM® code page global identifier but only if the character-to-hexadecimal code mapping is the same for your code page.)
- You can set a default code page. The default code page that is set within the file must be the last entry in the file.