litriada.blogg.se

Font wizard preview
Font wizard preview









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.

  • Filename: the name of the TrueType font file.
  • Fontname: the name that would be used for the SET_FONT keywords to the DEVICE routine.
  • The fields contain the following information: Where the fields in each column must be separated by white space (spaces and/or tabs). The format of the ttfont.map file is: FontName FileName DirectGraphicsScale ObjectGraphicsScale The TrueType font system relies on a resource file named ttfont.map, located in the resource/fonts/tt subdirectory of the IDL directory. To add a your own font to the list of fonts known to IDL, use a text editor to edit the ttfont.map file, adding the FontName, FileName, DirectGraphicsScale, and ObjectGraphicsScale fields for your font. For example, the capital letter "A" is 65, and the "+" symbol is 43. Note: To read the character number, add the column index (along the top) to the row index. The SHOWFONT command may be used to view the additional characters. Note: The DejaVu Sans font includes many more Unicode characters. 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.

    font wizard preview

    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:











    Font wizard preview