![]() |
![]() |
| |||||||||||||||||||||||||
Chapter 6FontsThis chapter describes the PostScript fonts included in the Traditional Chinese Solaris operating environment, what you need to use them, and how to edit them. Display PostScript System (DPS)The Traditional Chinese Solaris operating environment provides PostScript fonts in the Display PostScript System (DPS). This section describes what you need to use DPS in Traditional Chinese Solaris software. For further details, see Programming the Display PostScript System with X, published by Adobe Systems. Using Traditional Chinese PostScript Fonts and DPS FacilitiesThe Traditional Chinese Solaris operating environment DPS provides the fonts listed in the following table. Table 6-1
You can use the following Traditional Chinese fonts just as you would use Roman fonts:
The following figure shows a sample of Kai-Medium and Ming-Light. ![]() Creating Composite Roman and Traditional Chinese FontsYou can create composite fonts using one Roman font and one of the following Traditional Chinese fonts:
For example, the following PostScript code defines a sample composite font, Times-Italic+Kai-Medium, which uses Times-Italic for ASCII characters and Kai-Medium horizontal font for Traditional Chinese characters:
Using Traditional Chinese Fonts in DPS ProgrammingYou can use Traditional Chinese fonts just as you use Roman fonts in DPS wrap definitions. The following sample code creates the above display:
You can tell PSWDisplayText(Chinese text) in a C program to display the designated Chinese text; for example, as shown below: ![]() Traditional Chinese Solaris software provides TrueType support in DPS. Converting From BDF to PCF FormatBefore Solaris applications can use a modified BDF file, it must be converted to a file in PCF format. It must then be replaced in the $OPENWINHOME/lib/locale/zh_TW/fonts directory as follows:
The -o option enables the matrix encoding used for Asian PCF font files. For more information, see the bdftopcf(1) and mkfontdir(1) man pages. | |||||||||||||||||||||||||
| |||||||||||||||||||||||||