DESIGNATE_CHARACTER_SET(3G)
NAME
designate_character_set − associate a G-set with a character set.
SYNOPSIS
C Syntax:
void designate_character_set(fildes,chset,gset);
int fildes,gset;
char *chset;
FORTRAN77 Syntax:
subroutine designate_character_set(fildes,chset,gset)
integer*4 fildes,gset
character*(*) chset
Pascal Syntax:
procedure designate_character_set(fildes:integer;
chset:string255;gset:integer);
DESCRIPTION
Input Parameters
fildes Integer file descriptor returned by gopen when an I/O path to a graphics device is opened.
chset Name of a character set’s directory.
gset Selects one of the four G-sets (0 - 3). G-sets are discussed in the Starbase Graphics Techniques manual.
Discussion
Designate_character_set inserts the string ’/usr/lib/starbase/stroke’ in front of the character set directory name specified by the chset parameter. The resulting path name is used to identify the character set to be associated with the G-set specified by the gset parameter. The actual path name for the font to be used is the concatenation of the character set path name and the font index. The font index is specified by the text_font_index procedure. This implies that the character set path name is a directory.
The following character sets are supported by Starbase:
| chset | Name | Pathname |
| usascii | USASCII | /usr/lib/starbase/stroke/usascii |
| jisascii | JISASCII | /usr/lib/starbase/stroke/jisascii |
| katakana | Katakana | /usr/lib/starbase/stroke/katakana |
| hproman | HP Roman | /usr/lib/starbase/stroke/hproman |
| kanji | Kanji | /usr/lib/starbase/stroke/kanji |
| jpn | Jpn | /usr/lib/starbase/stroke/jpn |
When the text switching mode is HP_8BIT, only G0 and G1 can be set.
The kanji character set is available from Hewlett-Packard as a separate product.
DEFAULTS
G0, G2 USASCII (as set in /usr/lib/starbase/defaults).
G1, G3 HP ROMAN (as set in /usr/lib/starbase/defaults).
SEE ALSO
text_font_index(3G), text_switching_mode(3G), Starbase Graphics Techniques.
Hewlett-Packard Company — May 11, 2021