SHOWFONT

The SHOWFONT procedure displays a TrueType or vector-drawn font (from the file hersh1.chr , located in the main IDL directory) on the current graphics device.

This routine is written in the IDL language. Its source code can be found in the file showfont.pro in the lib subdirectory of the IDL distribution.

Calling Sequence

SHOWFONT, Font, Name

Arguments

Font

The index number of the font (may range from 3 to 29) or, if the TT_FONT keyword is set, a string that contains the name of the TrueType font to display.

Name

A string that contains the text of a title to appear at the top of the font display.

Keywords

ENCAPSULATED

Set this keyword, if the current graphics device is "PS", to make encapsulated PostScript output.

TT_FONT

If this keyword is set, the specified font will be interpreted as a TrueType font.

Example

To create a display of the Helvetica italic TrueType font on the screen:

SHOWFONT, 'Helvetica Italic', 'Helvetica Italic', /TT_FONT

To create a display of Font 3 for PostScript:

SET_PLOT, 'PS' ; Set output to PostScript.

SHOWFONT, 3, 'Simplex Roman' ; Display font 3.

DEVICE, /CLOSE ; Close the new PS file (saved by default as idl.ps).

See Also

EFONT , PS_SHOW_FONTS