TEXREP

Associates a bundle of text attributes with an index
Operating state: GKOP, SGOP, WSAC, WSOP
Default: none

Syntax

return-code-variable=GSET ('TEXREP',index, color-index, font);

Required Arguments

index
numeric constant or numeric variable name; specifies the number to use as an index for the bundle; valid values are 1 to 20, inclusive. If index is expressed as a variable, the variable must be initialized to a value between 1 and 20.
color-index
numeric constant or numeric variable name; indicates the color to use; valid values are 1 to 256, inclusive. The color index should represent one of the following:
  • a color index assigned with the GSET('COLREP', . . . ) function
  • the nth color in the color list of the COLORS= graphics option
  • the nth color in the device's default color list.
font
character string enclosed in quotation marks or character variable name; names the font to use with the bundle. See SAS/GRAPH Font Lists for a list of valid SAS/GRAPH fonts. You can also use fonts that you have created using the GFONT procedure.

Return Codes

This function returns:

Details

The GSET('TEXREP', . . . ) function assigns a color and font to a particular text bundle. The aspect source flags (ASF) of TEXCOLOR and TEXFONT must be set to 'BUNDLED' before the GDRAW('TEXT', . . . ) function is executed if you want the bundled values to be used when the text is drawn.