For example, to display the following figure on the screen, you would the command: SHOWFONT, 'DejaVuSans', 'DejaVu Sans', /TT_FONT The SHOWFONT command was used to create these figures. The character sets for the bold, italic, and bold italic versions of these fonts are the same as the roman versions. The following figures show roman versions of the TrueType font families included with IDL. 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:
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |