The Tru64 UNIX operating system provides Chinese DECwindows fonts in various sizes and typefaces for 75 dpi (dots-per-inch) display devices. Table 5-1 lists the screen fonts for traditional Chinese.
Typefaces | Glyph Size | Bounding Box | Remarks |
---|---|---|---|
Screen | 15
x 16 | 16 x 18 | Mandatory
font |
Sung | 22
x 22 | 24 x 24 | Optional
font |
Hei | 15
x 16 | 16 x 16 | Optional
font |
There are two sets of DECwindows fonts, one for CNS 11643-1986 and one for DTSCS.
Table 5-2 lists the screen fonts for simplified Chinese.
Typefaces | Glyph Size | Bounding Box | Remarks |
---|---|---|---|
Screen | 15
x 16* | 16 x 18 | Mandatory font, defined in |
Songti | 15
x 16* | 16
x 16 | Optional
font, defined in |
Heiti | 15
x 16 | 16 x 16 | Optional font |
Fangsongti | 22
x 22* | 24 x 24 | Optional
font |
Kaiti | 22
x 22* | 24 x 24 | Optional
font |
* The fonts marked with an asterisk are supplied by China Standard Technology Development Corporation (CSTDC) of People's Republic of China.
In addition to these Chinese fonts, several miscellaneous screen fonts are provided for use in Hanyu and Hanzi DECterm, and the Motif toolkit. The operating system also provides default TrueType fonts for DEC Hanzi, GBK, and GB18030 codesets, as described in Section 5.3.
The mandatory fonts are available after you install the Chinese language support from the worldwide language support software. Other optional fonts are available only if you install the optional Chinese font subsets. If you do not find the optional fonts on your system, contact your system administrator.
No 100 dpi Chinese fonts are provided in the kit. To allow you to use the Chinese fonts on 100 dpi display devices, a font alias file is provided to map the 75 dpi font names to 100 dpi font names.
You must specify the DECwindows font names in X Logical Font Description (XLFD) format in your application programs or in the application resource files. You can specify wildcards (*) for any fields in the font names.
You can use the following font names for both 75 dpi and 100 dpi display devices. If you want to state the display resolution explicitly, you can specify 75 or 100 in the X- and Y-resolution fields, that is, the second and third asterisks in the following XLFD names.
CNS 11643-1986 Fonts
-ADECW-Screen-Medium-R-Normal--*-180-*-*-M-160-DEC.CNS11643.1986-2
-ADECW-Screen-Medium-R-Normal--*-240-*-*-M-240-DEC.CNS11643.1986-2
DTSCS Fonts
-ADECW-Screen-Medium-R-Normal--*-180-*-*-M-160-DEC.DTSCS.1990-2
-ADECW-Screen-Medium-R-Normal--*-240-*-*-M-240-DEC.DTSCS.1990-2
CNS 11643-1986 Fonts
-ADECW-Sung-Medium-R-Normal--*-240-*-*-M-240-DEC.CNS11643.1986-2
-ADECW-Sung-Medium-R-Normal--*-320-*-*-M-320-DEC.CNS11643.1986-2
DTSCS Fonts
-ADECW-Sung-Medium-R-Normal--*-240-*-*-M-240-DEC.DTSCS.1990-2
-ADECW-Sung-Medium-R-Normal--*-320-*-*-M-320-DEC.DTSCS.1990-2
CNS 11643-1986 Fonts
-ADECW-Hei-Medium-R-Normal--*-160-*-*-M-160-DEC.CNS11643.1986-2
-ADECW-Hei-Medium-R-Normal--*-240-*-*-M-240-DEC.CNS11643.1986-2
DTSCS Fonts
-ADECW-Hei-Medium-R-Normal--*-160-*-*-M-160-DEC.DTSCS.1990-2
-ADECW-Hei-Medium-R-Normal--*-240-*-*-M-240-DEC.DTSCS.1990-2
-ADECW-Screen-Medium-R-Normal--*-180-*-*-M-160-GB2312.1980-1
-ADECW-Screen-Medium-R-Normal--*-240-*-*-M-240-GB2312.1980-1
-ADECW-Songti-Medium-R-Normal--*-160-*-*-M-160-GB2312.1980-1
-ADECW-Songti-Medium-R-Normal--*-240-*-*-M-240-GB2312.1980-1
-ADECW-Songti-Medium-R-Normal--*-340-*-*-M-340-GB2312.1980-1
-ADECW-Heiti-Medium-R-Normal--*-160-*-*-M-160-GB2312.1980-1
-ADECW-Heiti-Medium-R-Normal--*-240-*-*-M-240-GB2312.1980-1
-ADECW-Heiti-Medium-R-Normal--*-340-*-*-M-340-GB2312.1980-1
-ADECW-Fangsongti-Medium-R-Normal--*-240-*-*-M-240-GB2312.1980-1
-ADECW-Fangsongti-Medium-R-Normal--*-340-*-*-M-340-GB2312.1980-1
-ADECW-Kaiti-Medium-R-Normal--*-240-*-*-M-240-GB2312.1980-1
-ADECW-Kaiti-Medium-R-Normal--*-340-*-*-M-340-GB2312.1980-1
Table 5-3 shows the font names, in XLFD format, of several miscellaneous Chinese screen fonts.
XLFD Font Name | Character Set |
---|---|
-ADECW-Screen-Medium-R-Normal--*-180-*-*-M-80-iso8859-1 | ISO Latin-1 |
-ADECW-Screen-Medium-R-Normal--*-180-*-*-M-80-DEC-DECctrl | DEC Display Control |
-ADECW-Screen-Medium-R-Normal--*-180-*-*-M-80-DEC-DECsuppl | DEC Supplemental |
-ADECW-Screen-Medium-R-Normal--*-180-*-*-M-80-DEC-DECtech | DEC Technical |
-ADECW-Screen-Medium-R-Normal--*-180-*-*-M-80-DEC-DRCS | DEC DRCS |
-ADECW-Screen-Medium-R-Normal--*-240-*-*-M-120-iso8859-1 | ISO Latin-1 |
-ADECW-Screen-Medium-R-Normal--*-240-*-*-M-120-DEC-DECctrl | DEC Display Control |
-ADECW-Screen-Medium-R-Normal--*-240-*-*-M-120-DEC-DECsuppl | DEC Supplemental |
-ADECW-Screen-Medium-R-Normal--*-240-*-*-M-120-DEC-DECtech | DEC Technical |
-ADECW-Screen-Medium-R-Normal--*-240-*-*-M-120-DEC-DRCS | DEC DRCS |
Figures 5-1 through Figure 5-6 illustrate samples of Chinese fonts.
The X Consortium registers names for font encodings that are used in XLFDs. However, no names currently are registered for CNS 11643 and DTSCS. Therefore, they are currently supported as private encodings as shown in Table 5-4.
Character Set | Character Set Registry |
---|---|
CNS 11643-1986 | DEC.CNS11643.1986-2 |
DTSCS | DEC.DTSCS.1990-2 |
Because the X Window System provides only basic Xlib functions for handling 8-bit and 16-bit characters, the 4-byte data representation of DTSCS is trimmed to remove the two leading bytes, C2 CB, to form a 2-byte encoding. DECwindows applications should either preprocess the 4-byte data and then handle them with the low level Xlib functions or handle Chinese strings with the internationalized text drawing functions provided by X11R6 Xlib or Motif Toolkit.
Figure 5-7 and Figure 5-8 illustrate these two encoding schemes.
Vendors may adopt different encoding schemes or even different character sets to produce their fonts. The fonts supplied by the operating system are all in the encoding schemes defined in this section. To allow you to run applications on third-party workstations on which different font encodings are installed, the Tru64 UNIX implementation of X11R6 Xlib supports the conversion of encodings during text display.
Table 5-5 shows these encoding conversions.
Character Set | Convert From | Convert To |
---|---|---|
Taiwanese EUC | euctw-1
(plane 1) | dec.cns11643.1986-2 |
Big-5 | big5-0 | dec.cns11643.1986-2 |
For simplified Chinese, the X Window System defines two encodings for the GB2312-80 character set, as shown in Table 5-6. Figure 5-9 illustrates the GB2312-80 encoding scheme.
Encoding | Character Set Registry |
---|---|
GL | GB2312.1980-0 |
GR | GB2312.1980-1 |
The Chinese DECwindows fonts supplied by the operating system are all in GR encoding. To allow you to run applications on third-party workstations on which only GL-encoded fonts are installed, the Tru64 UNIX implementation of X11R6 Xlib supports the conversion of GR encoding to GL encoding for text drawing and measurement, as shown in Table 5-7.
Convert From | Convert To |
---|---|
gb2312.1980-1 | gb2312.1980-0 |
For details, see the Writing Software for the International Market manual in the Tru64 UNIX documentation set.
Table 5-8 and Table 5-9 show the default fonts used in the Motif Toolkit.
XLFD Font Name | Character Set |
---|---|
-ADECW-Screen-Medium-R-Normal--*-180-*-*-M-80-iso8859-1 | ISO8859-1 |
-ADECW-Screen-Medium-R-Normal--*-180-*-*-M-160-DEC.CNS11643.1986-2 | DEC.CNS11643.1986-2 |
-ADECW-Screen-Medium-R-Normal--*-180-*-*-M-160-DEC.CNS11643.1986-2-UDC | DEC.CNS11643.1986-2-UDC |
-ADECW-Screen-Medium-R-Normal--*-180-*-*-M-160-DEC.DTSCS.1990-2 | DEC.DTSCS.1990-2 |
-ADECW-Screen-Medium-R-Normal--*-180-*-*-*-*-* | Fontset |
XLFD Font Name | Character Set |
---|---|
-ADECW-Screen-Medium-R-Normal--*-180-*-*-M-80-iso8859-1 | ISO8859-1 |
-ADECW-Screen-Medium-R-Normal--*-180-*-*-M-160-GB2312.1980-1 | GB2312.1980-1 |
-ADECW-Screen-Medium-R-Normal--*-180-*-*-M-160-GB2312.1980-UDC | GB2312.1980-UDC |
-ADECW-Screen-Medium-R-Normal--*-180-*-*-*-*-* | Fontset |
To override the default fonts of a traditional Chinese DECwindows application, you should specify the ISO Latin-1, DTSCS, and CNS11643 (UDC) fonts as well as the Chinese fontset when creating widget instances. For a simplified Chinese DECwindows application, you should specify the ISO Latin-1, GB2312-80, and extended GB (UDC) fonts as well as the Chinese fontset when creating widget instances. For details, see Writing Software for the International Market.
Tru64 UNIX provides the following traditional and simplified Chinese outline fonts for printing on PostScript printers and for display through Level II Display PostScript extension.
For traditional Chinese:
For simplified Chinese,
The encoding of these fonts is the same as that illustrated in Figure 5-7 and Figure 5-9.
These Chinese outline fonts have the following uses:
% xset +fp $I18NPATH/usr/lib/X11/fonts/TChinesePS,
$I18NPATH/usr/lib/X11/fonts/SChinesePS
This is done automatically when the outline fonts are installed.
To use the Chinese outline fonts through the Type 1 rasterizer, you can specify the font names in XLFD (X Logical Font Description) format in your application programs or in the application resource files, just like ordinary DECwindows bitmap fonts.
To specify the XLFD font name of an outline font, you should replace the fields currently marked with 0 (zero) with the following information:
For example, if you want to use a 48-point font of the Sung-Light-CNS11643 family for a 100 dpi display device, you would specify:
-dyna-sung-medium-r-normal--*-480-100-100-m-*-CNS11643.1986
The operating system provides both screen and printer TrueType fonts for Chinese character sets. The following sets of simplified Chinese TrueType fonts are installed as the default fonts for the DEC Hanzi, GBK, and GB18030 codesets.
DEC Hanzi Fonts:
FangSong
css_dongwen-fangsong-medium-r-normal--0-0-0-0-c-0-gb2312.1980.0
css_dongwen-fangsong-medium-r-normal--0-0-0-0-c-0-gb2312.1980.1
css_dongwen-fangsong-medium-r-normal--0-0-0-0-c-0-iso8859-1
HeiTi
css_dongwen-heiti-medium-r-normal--0-0-0-0-c-0-gb2312.1980.0
css_dongwen-heiti-medium-r-normal--0-0-0-0-c-0-gb2312.1980.1
css_dongwen-heiti-medium-r-normal--0-0-0-0-c-0-iso8859-1
KaiTi
css_dongwen-kaiti-medium-r-normal--0-0-0-0-c-0-gb2312.1980.0
css_dongwen-kaiti-medium-r-normal--0-0-0-0-c-0-gb2312.1980.1
css_dongwen-kaiti-medium-r-normal--0-0-0-0-c-0-iso8859-1
SongTi
css_dongwen-songti-medium-r-normal--0-0-0-0-c-0-gb2312.1980.0
css_dongwen-songti-medium-r-normal--0-0-0-0-c-0-gb2312.1980.1
css_dongwen-songti-medium-r-normal--0-0-0-0-c-0-iso8859-1
GBK Fonts:
FangSong
css_dongwen-fangsong-medium-r-normal--0-0-0-0-c-0-gbk-1
css_dongwen-fangsong-medium-r-normal--0-0-0-0-c-0-iso8859-1
HeiTi
css_dongwen-heiti-medium-r-normal--0-0-0-0-c-0-gbk-1
css_dongwen-heiti-medium-r-normal--0-0-0-0-c-0-iso8859-1
KaiTi
css_dongwen-kaiti-medium-r-normal--0-0-0-0-c-0-gbk-1
css_dongwen-kaiti-medium-r-normal--0-0-0-0-c-0-iso8859-1
SongTi
css_dongwen-songti-medium-r-normal--0-0-0-0-c-0-gbk-1
css_dongwen-songti-medium-r-normal--0-0-0-0-c-0-iso8859-1
GB18030 Fonts:
FangSong
css_dongwen-fangsong-medium-r-normal--0-0-0-0-c-0-iso10646-1
css_dongwen-fangsong-medium-r-normal--0-0-0-0-c-0-iso8859-1
HeiTi
css_dongwen-heiti-medium-r-normal--0-0-0-0-c-0-iso10646-1
css_dongwen-heiti-medium-r-normal--0-0-0-0-c-0-iso8859-1
KaiTi
css_dongwen-kaiti-medium-r-normal--0-0-0-0-c-0-iso10646-1
css_dongwen-kaiti-medium-r-normal--0-0-0-0-c-0-iso8859-1
SongTi
css_dongwen-songti-medium-r-normal--0-0-0-0-c-0-iso10646-1
css_dongwen-songti-medium-r-normal--0-0-0-0-c-0-iso8859-1