SHOWFONT
Syntax | Arguments | Keywords | Examples | Version History | See Also
The SHOWFONT procedure displays a TrueType or vector-drawn font (from the file hersh1.chr, located in the resource/fonts subdirectory of the IDL distribution) 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.
Syntax
SHOWFONT, Font, Name [, /ENCAPSULATED] [, /TT_FONT]
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.
Examples
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:
Version History