Code Page Definition File
cpdef.fnt
) maps the AFP code page name to its code page global identifier (CPGID) and, optionally,
to an encoding classification and an encoding type for Asian languages.The section header, CODEPG, is followed by a list of AFP code pages and their attributes. The first attribute in each line is the AFP code page global identifier that maps to a code page map file. The second attribute is the encoding classification that you decide is the best match for your AFP code page. The last line gives the default attribute values to be used when a default is required.
CODEPG Section of cpdef.fnt
File shows an example of the contents of the cpdef.fnt
file.
CODEPG Section of cpdef.fnt
File
[CODEPG] ;codepage = cpgid,wincp T1DCDCFS=1003,ANSI T1DEBASE=2058,ANSI T1D0BASE=2063,ANSI T1D0GP12=2085,ANSI T1GI0395=2079,ANSI T1GPI363=2066,SYMBOL T1V10037=37,ANSI T1V10273=273,ANSI T1000290=290,ANSI T1000310=310,ANSI T1000423=423,ANSI T1000905=905,ANSI DEFAULT=361,ANSI
Attribute Values for CODEPG
Attribute | Value | Shipped Default | Description |
---|---|---|---|
cpgid |
A CPGID in the range of 65280 to 65534 |
361 | An AFP-defined code page global identifier (CPGID), your own defined CPGID, or any other CPGID not already used in the file. |
wincp |
ANSI, SYMBOL, OEM, or NONSTD KYUJIS (Japanese) BIG5 (Traditional Chinese) GB (Simplified Chinese) KSC (Korean) IDENTITY (Unicode) |
ANSI | PDF encoding |
entype |
SBCS or DBCS |
SBCS or DBCS encoding type for Asian language definitions |
Syntax rules
-
A comma must separate attributes
-
Only the first attribute, cpgid, 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 a predefined code page global identifier, but only if the character-to-hexadecimal code mapping is the same for your code page.)
-
If you define a default code page in the file, it must be the last entry in the file.