
On UNIX platforms, IDL will search for the file specified in the FileName field in the current directory (that is, in the resource/fonts/tt subdirectory of the IDL directory) if a bare filename is provided, or it will look for the file in the location specified by the fully-qualified file name if a complete path is provided.

You can also use Embedded Formatting Commands to position text and change fonts within a single line of text. For example: p = PLOT(/TEST, FONT_NAME= 'Times', FONT_STYLE= 'Bold italic', FONT_SIZE= 14, TITLE= 'My Plot')įor object graphics, the default TrueType font is 12-point Helvetica regular. Use the FONT_NAME and FONT_STYLE keywords to select the font. For example, to plot using "Helvetica Bold Italic", use the following statements: DEVICE, SET_FONT= 'Helvetica Bold Italic', /TT_FONT PLOT, RANDOMU(seed, 10), CHARSIZE= 2, FONT= 1, TITLE= 'My Plot'įor IDL's Graphics functions, the default is 11-point DejaVuSans. To use the TrueType font system with IDL Object Graphics, consult " IDLgrFont." To use the truetype fonts with IDL's Graphics functions, see the TEXT function.įor Direct Graphics, use the SET_FONT and TT_FONT keywords to the DEVICE routine to select the font to use. To use the TrueType font system with IDL Direct Graphics, either set the value of the IDL system variable !P.FONT equal to 1 (one), or set the FONT keyword to on one of the Direct Graphics routines equal to 1. IDL includes the following TrueType fonts:
