Chapter Contents

Previous

Next
TEXREP

TEXREP



Associates a bundle of text attributes with an index

Operating States: GKOP, SGOP, WSAC, WSOP
Return Codes: 0, 8, 68, 85
Default Value: none


Syntax
Description
Argument Definitions
See Also


Syntax

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


Description

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.


Argument Definitions

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 colors list of the COLORS= graphics option

  • the nth color in the device's default colors list.

font character string enclosed in quotation marks or character variable name; names the font to use with the bundle. See Font Lists for a list of valid SAS/GRAPH fonts. You may also use fonts you have created using the GFONT procedure.

See Also

COLORS= graphics option (see COLORS)
GASK('TEXREP', . . . ) routine
GSET('ASF', . . . ) function
GSET('COLREP', . . . ) function
GSET('TEXINDEX', . . . ) function


Chapter Contents

Previous

Next

Top of Page

Copyright 1999 by SAS Institute Inc., Cary, NC, USA. All rights reserved.