[Contents] [Previous Chapter] [Next Section] [Next Chapter] [Index] [Help]


5   Fonts

5.1  DECwindows Fonts

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.


Table 5-1: Traditional Chinese Screen Fonts

Typefaces

Glyph Size

Bounding Box

Remarks

Screen

15 x 16
22 x 22

16 x 18
24 x 24

Mandatory font
Mandatory font

Sung

22 x 22
30 x 30

24 x 24
32 x 32

Optional font
Optional font

Hei

15 x 16
22 x 22

16 x 16
24 x 24

Optional font
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.

Table 5-2: Simplified Chinese Screen Fonts

Typefaces

Glyph Size

Bounding Box

Remarks

Screen

15 x 16*

22 x 22*

16 x 18

24 x 24

Mandatory font, defined in
GB5199.1-85
Mandatory font

Songti

15 x 16*

22 x 22*
32 x 32*

16 x 16

24 x 24
34 x 34

Optional font, defined in
GB5199.1-85
Optional font
Optional font, defined in
GB6345.1-86

Heiti

15 x 16
22 x 22*
32 x 32*

16 x 16
24 x 24
34 x 34

Optional font
Optional font
Optional font, defined in
GB12036-89

Fangsongti

22 x 22*
32 x 32*

24 x 24
34 x 34

Optional font
Optional font, defined in
GB12034-89

Kaiti

22 x 22*
32 x 32*

24 x 24
34 x 34

Optional font
Optional font, defined in
GB12035-89

* 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.


[Contents] [Previous Chapter] [Previous Section] [Next Section] [Next Chapter] [Index] [Help]


5.1.1   XLFD 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.

Table 5-3: XLFD of 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


[Contents] [Previous Chapter] [Previous Section] [Next Section] [Next Chapter] [Index] [Help]


5.1.2   Bitmap Font Samples

Figures 5-1 through Figure 5-6 illustrate samples of Chinese fonts.

Figure 5-1: Sung Font Sample

Sung Font Sample

Figure 5-2: Hei Font Sample

Hei Font Sample

Figure 5-3: Songti Font Sample

Songti Font Sample

Figure 5-4: Heiti Font Sample

Heiti Font Sample

Figure 5-5: Fangsongti Font Sample

Fangsongti Font Sample

Figure 5-6: Kaiti Font Sample

Kaiti Font Sample


[Contents] [Previous Chapter] [Previous Section] [Next Section] [Next Chapter] [Index] [Help]


5.1.3   Font Encodings

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.

Table 5-4: Chinese DECwindows Font Encodings

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.

Figure 5-7: CNS 11643-1986 Font Encoding Scheme

CNS 11643-1986 Font Encoding Scheme

Figure 5-8: DTSCS Font Encoding Scheme

DTSCS Font Encoding Scheme

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.

Table 5-5: Font Encoding Conversion

Character Set

Convert From

Convert To

Taiwanese EUC

euctw-1 (plane 1)
euctw-2 (plane 2)
euctw-3 (plane 3)
euctw-4 (plane 4)

dec.cns11643.1986-2
dec.cns11643.1986-2
dec.dtscs.1990-2
dec.dtscs.1990-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.

Table 5-6: Chinese DECwindows Font Encodings

Encoding

Character Set Registry

GL

GB2312.1980-0

GR

GB2312.1980-1

Figure 5-9: GB2312-80 Font Encoding Schemes

GB2312-80 Font Encoding Schemes

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.

Table 5-7: GR to GL Font Encoding Conversion

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.


[Contents] [Previous Chapter] [Previous Section] [Next Section] [Next Chapter] [Index] [Help]


5.1.4  Specifying Fonts in DECwindows Applications

Table 5-8 and Table 5-9 show the default fonts used in the Motif Toolkit.

Table 5-8: Traditional Chinese Default Fonts

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

Table 5-9: Simplified Chinese Default Fonts

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.


[Contents] [Previous Chapter] [Previous Section] [Next Section] [Next Chapter] [Index] [Help]


5.2   Outline Fonts

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.


[Contents] [Previous Chapter] [Previous Section] [Next Section] [Next Chapter] [Index] [Help]


5.2.1   XLFD Font Names of Chinese Outline Fonts

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


[Contents] [Previous Chapter] [Previous Section] [Next Chapter] [Index] [Help]


5.3   TrueType Fonts

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


[Contents] [Previous Chapter] [Next Chapter] [Index] [Help]