Previous Page | Next Page

Using SAS/GRAPH Fonts

Font Locations And the Default Search Path

SAS/GRAPH fonts are stored in catalogs. SAS/GRAPH looks only into catalogs with certain librefs and names to find fonts. By default, SAS/GRAPH searches for the font in the catalog SASHELP.FONTS, which contains SAS/GRAPH fonts, key maps, and device maps.

If you want to specify fonts that you have created locally, submit a LIBNAME statement that associates the libref GFONT0 with the location of your font catalog. If you have specified more than one libref in the sequence GFONT0 through GFONT9, SAS/GRAPH performs a sequential search of these catalogs when locating the font that you have specified.

When you specify a font name, SAS/GRAPH searches for the font in the following order:

  1. If a SAS library with the libref GFONT0 exists, then SAS/GRAPH looks there for a catalog named FONTS. If GFONT0.FONTS exists, it is checked for the specified font. If the font is not there, then SAS/GRAPH looks next for a library with the libref GFONT1 and for a catalog named FONTS in that library. The search is repeated for the sequence of librefs through GFONT9.

  2. SAS/GRAPH searches for the font in SASHELP.FONTS if the following situations occur.

    1. It fails to find the specified font in any FONTS catalog in the libraries GFONT0 to GFONT9.

    2. It finds a GFONTn libref without a FONTS catalog.

    3. It encounters an undefined libref in that sequence before locating the specified font.

    (SASHELP is one of the standard librefs defined automatically whenever you start your SAS session; you do not need to issue a LIBNAME statement to define it.)

  3. If the specified font is not found in SASHELP.FONTS, then a warning is issued and the SIMULATE font is used. The SIMULATE font is the default SAS/GRAPH font and should never be deleted from the fonts catalog. See The SIMULATE Font for more information.

See The GFONT Procedure for additional information on specifying the libref GFONT0.

Previous Page | Next Page | Top of Page