![]() |
![]() |
| ||||||||||||||||||||||||||||||||||
Chapter 7FontsAbout This ChapterThis chapter describes the PostScript fonts included in the Simplified Chinese Solaris operating environment, what you need to use them, and how to edit them. Display PostScript System (DPS)The Simplified Chinese Solaris operating environment provides PostScript fonts in the Display PostScript System (DPS). This section describes what you need to use DPS in Simplified Chinese Solaris software. For further details, see Programming the Display PostScript System with X, published by Adobe® Systems. Using Simplified Chinese PostScript Fonts and DPS FacilitiesThe Simplified Chinese Solaris operating environment includes the fonts listed in the following table. You can use any of the Simplified Chinese fonts just as you would use Roman fonts. Table 7-1 Simplified Chinese Solaris Operating Environment PostScript Fonts
The following figure shows a sample of Song-Medium. Figure 7-1 Sample Simplified Chinese Text Display PostScript Output ![]() Creating Composite Roman and Simplified Chinese FontsYou can create composite fonts using any one Roman font and the Simplified Chinese fonts. For example, the following PostScript code defines a composite font, Times-Italic+Kai-Medium, which uses Times-Italic for ASCII characters and Kai-Medium font for Simplified Chinese characters:
Using Simplified Chinese Fonts in DPS ProgrammingYou can use Simplified Chinese fonts just as you use Roman fonts in DPS wrap definitions. The following code sample creates the display in the next figure.
You can call PSWDisplayText(Chinese text) in a C program to display the designated Chinese text. For an example see the following figure. Figure 7-2 Using Simplified Chinese Solaris Operating Environment DPS ![]() Simplified Chinese Solaris software provides TrueType support in DPS. Converting BDF to PCF FormatBefore applications can use the modified BDF file, it must be converted to a PCF format file.
For more information, see the bdftopcf(1) man page. Installing and Checking the Edited Font
All Simplified Chinese fonts have XLFD font names, and you can use the xlsfonts utility to display these names as follows:
Creating Characters With sdtudctoolYou can create new characters using the drawing tools in the sdtudctool utility. (For information on modifying a font, see Editing Fonts With fontedit on page 83.) Following is the user defined characters code range for different SCH locales: Table 7-2 Code Points for locales
The sdtudctool utility supports bitmap, Type 1, and CID fonts. You can also specify a font size for the new characters. This section contains procedures for using sdtudctool.
|
system% sdtudctool |
The following window appears.

Click the Character button.
The following dialog box appears:

Specify the code position of the new character.
Create the outline or bitmap for the character using the drawing tools.
Click Save to save the character.
Continue creating new characters.
When you are finished, choose Save from the File menu to save the changes to your environment.
The new character(s) are saved in $HOME/.Xlocale/{locale}/fonts/UDC.. .
Previous Contents Index Next ![]() |