GDDM V3R2 Base Application Programming Guide
Previous topic | Next topic | Contents | Index | Contact z/OS | Library | PDF | BOOK


Changing the space between characters of graphics text

GDDM V3R2 Base Application Programming Guide
SC33-0867-01



The standard space between adjacent characters is the sum of the spaces between each character and the edge of its character box. With the GSCBS call, you can set the character-box spacing attribute to insert extra horizontal and vertical space between the character boxes of graphics text.

The two multipliers you supply with the GSCBS call are applied to the width and height of the character box to determine how much horizontal and vertical space to insert between character boxes in the string. (They do not affect the size of the character box itself.) Initially the value of both multipliers is 0, so standard spacing is used and the character boxes are adjacent.

At I , the GSCBS call specifies a positive nonzero value for character-box spacing so that subsequent GSCHAR and GSCHAP calls draw characters with more space between them. (A negative value would cause character boxes to overlap.)

A multiplier of 0.2 is applied to the width of the current character box. This specifies that 0.56 x-units of horizontal space (2.8 x 0.2) are to be placed between the character boxes in subsequent strings.

A multiplier of 0.18 is applied to the height of the current character box to specify the vertical space to be placed between the lines of subsequent strings of graphics text. When the new-line character occurs at J , this multiplier causes the new line to be placed 1.44 y-units (8.0 x 0.18) below the first.

Note: For graphics text characters spaced proportionally to their individual widths, see "Using proportionally-spaced characters" in topic 4.5.

Inserting space between the character boxes of proportional characters corrupts their proportional spacing.

Go to the previous page Go to the next page



Copyright IBM Corporation 1990, 2012