Code page
- A traditional code page contains the mapping information between a code point and a character ID; it can be used with FOCA character sets and TrueType and OpenType fonts.
- An extended code page contains the mapping information for a code point, a character ID, and a Unicode point; it can be used with TrueType and OpenType fonts.
| Numeral system | Value |
|---|---|
| Binary | 11000001 |
| Decimal | 193 |
| Hexadecimal | C1 |
When a code page is used with a FOCA character set, as you enter your text at a computer terminal, each keyboard character is translated into a code point. When the text is printed, each code point is matched to a character ID on the code page you specified. The character ID is then matched to the image (raster pattern or outline pattern) of the character in the character set you specified. The image in the character set is the image that is printed in your text. To be a valid code page for a particular character set, all character IDs in the code page must be included in that character set (Figure 1).




Code pages for different languages
- Hexadecimal code point 51 in code page T1V10037 (Country Extended: United States, Canada)
- Hexadecimal code point 5A in code page T1V10280 (Country Extended: Italy)
Single-byte and double-byte code pages
A single-byte code page contains 256 or fewer 1-byte code points. Single-byte code pages are large enough for languages with alphabetic writing systems, such as English, Greek, and Arabic. A single-byte character set (SBCS) is used with a single-byte code page.
A double-byte code page can contain as many as 65,536 two-byte code points. Languages with non-alphabetic writing systems, such as Chinese, Japanese, and Korean, require double-byte code pages. A double-byte character set (DBCS) is used with a double-byte code page.
DBCSs contain some single-byte characters, usually romaji (Western characters) and katakana. Single-byte code pages are used with these characters. Because the characters are either half width (see Font spacing characteristics) or proportionally spaced, these code pages are sometimes called half-width code pages.
Code page sections
If you think of a double-byte code page as a collection of single-byte code pages, a double-byte character code has two parts: the first byte indicating a section of the code page and the second byte a code point in the section.
Raster coded fonts treat double-byte code pages this way: the coded font is divided into sections, each with its own single-byte code page. Each character in the section has a single-byte code point.
Outline coded fonts treat double-byte code pages as single, large code pages. Each character has a double-byte code point.