Previous Page | Next Page

Annotate Dictionary

STYLE Variable (Fonts)



Specifies a font for text or symbols produced by the LABEL or SYMBOL functions.
Type: character
Length: Depends on specification.
Default: default device-resident font
Not supported by: ActiveX (Partial), Java

Syntax
Details

Syntax

STYLE='font-specification' | 'NONE';

font-specification

specifies a font. You can specify a GRSEG catalog entry that is supplied by SAS (for example, CENTB) or a system font that is available in your operating environment. A device-resident font can be specified by using either of these forms:

  • HWxxxnn

  • "font-name"

Note:   If you specify a sytem font whose name is longer than eight characters, then you must enclose the name of the font in double quotes.  [cautionend]

NONE

specifies the default device-resident font.

See Specifying Fonts in SAS/GRAPH Programs for more information about specifying fonts.

If the value of the STYLE variable is missing, SAS/GRAPH software searches for a font specification in this order:

  1. the font specified by the FTEXT= graphics option

  2. the device-resident font, if the device supports one

  3. the SIMULATE font.


Details

When the STYLE variable is used with the SYMBOL function, it behaves the same as the FONT= option in the SYMBOL statement. By default, no font is specified and the symbol that is specified by the TEXT variable is taken from the special symbol table. If you use STYLE to specify a symbol font, such as Marker, the string that is assigned by the TEXT variable is the character code for a symbol. If you use STYLE to specify a text font, such as Swiss, the string assigned by the TEXT variable is displayed as text. See the FONT= option of the SYMBOL statement for details.

Note:   Java does not support the STYLE variable. However, you can use special symbols from the MARKER font by using the SYMBOL function.  [cautionend]

Previous Page | Next Page | Top of Page