CHARACTER_WIDTH(3G)
NAME
character_width − specify character width
SYNOPSIS
C Syntax:
void character_width(fildes,width);
int fildes;
float width;
void dccharacter_width(fildes,dcwidth);
int fildes,dcwidth;
FORTRAN77 Syntax:
subroutine character_width(fildes,width)
integer*4 fildes
real width
subroutine dccharacter_width(fildes,dcwidth)
integer*4 fildes,dcwidth
Pascal Syntax:
procedure character_width(fildes:integer;width:real);
procedure dccharacter_width(fildes,dcwidth:integer);
DESCRIPTION
Input Parameters
fildes Integer file descriptor returned by gopen when an I/O path to a graphics device is opened.
width Width of a text character measured in Virtual Device Coordinates along the baseline.
dcwidth Width of a text character measured in Device Coordinates along the baseline.
Discussion
Character_width specifies the width of subsequently drawn characters. The character_expansion_factor and character_width procedures both modify the width of a character. The procedure most recently executed defines the character width for subsequently drawn characters.
Character width values are independent of character height values.
Beware:
If vdc_extent is changed, the character width is recomputed using the new VDC extent and the last character width set, or the default (0.02) if no previous calls to character_width were made.
DEFAULTS
None, character width is defined by the default character expansion factor of 1.0.
SEE ALSO
character_expansion_factor(3G), character_height(3G), vdc_extent(3G).
Hewlett-Packard Company — May 11, 2021