An integer that specifies the graphics text font system to use.
Set FONT equal to -1 to select the Hershey character fonts, which are drawn using vectors.
Set FONT equal to 0 (zero) to select the device font of the output device.
Set FONT equal to 1 (one) to select the TrueType font system. See Fonts for a complete description of IDL's font systems.
Using PostScript Fonts
To use a PostScript font in your Direct Graphics output, you must first specify that IDL use the device font system, then switch to the
PS
device, then choose a font using the SET_FONT keyword to the DEVICE procedure.
The following IDL commands choose the correct font system (0 designates the device font system), set the graphics device, select the font Palatino Roman, open a PostScript file to print to, plot a simple data set, and close the PostScript file:
!P.FONT = 0
SET_PLOT, 'PS'
DEVICE, SET_FONT='Palatino-Roman', FILE='testfile.ps'
PLOT, INDGEN(10), TITLE = 'My Palatino Title'
DEVICE, /CLOSE
Font types :
Change Font type within string
http://www.exelisvis.com/docs/embedded_formatting_comm.html#fonts_2203613354_1050246
Command
|
Hershey Vector Font
|
TrueType Font
|
PostScript Font
|
!3
|
Simplex Roman (default)
|
Helvetica
|
Helvetica
|
!4
|
Simplex Greek
|
Helvetica Bold
|
Helvetica Bold
|
!5
|
Duplex Roman
|
Helvetica Italic
|
Helvetica Narrow
|
!6
|
Complex Roman
|
Helvetica Bold Italic
|
Helvetica Narrow Bold Oblique
|
!7
|
Complex Greek
|
Times
|
Times Roman
|
!8
|
Complex Italic
|
Times Italic
|
Times Bold Italic
|
!9
|
Math/special characters
|
Symbol
|
Symbol
|
!M
|
Math/special characters
|
Symbol
|
Symbol
|
!10
|
Special characters
|
DejaVu Sans
|
Zapf Dingbats
|
!11 or !G
|
Gothic English
|
Courier
|
Courier
|
!12 or !W
|
Simplex Script
|
Courier Italic
|
Courier Oblique
|
!13
|
Complex Script
|
Courier Bold
|
Palatino
|
!14
|
Gothic Italian
|
Courier Bold Italic
|
Palatino Italic
|
!15
|
Gothic German
|
Times Bold
|
Palatino Bold
|
!16
|
Cyrillic
|
Times Bold Italic
|
Palatino Bold Italic
|
!17
|
Triplex Roman
|
Helvetica *
|
Avant Garde Book
|
!18
|
Triplex Italic
|
Helvetica *
|
New Century Schoolbook
|
!19
|
|
Helvetica *
|
New Century Schoolbook Bold
|
!20
|
Miscellaneous
|
Helvetica *
|
Undefined User Font
|
!X
|
Revert to the entry font
|
Revert to the entry font
|
Revert to the entry font
|
* The font assigned to this index may be replaced in a future release of IDL.
|
!A
|
Shift above the division line.
|
!B
|
Shift below the division line.
|
!C
|
“Carriage return,” begins a new line of text. Shift back to the starting position and down one line. This command also performs an implicit “!N” command, returning to the normal level and character size at the beginning of the new line.
|
!D
|
Shift down to the first level subscript and decrease the character size by a factor of 0.62.
|
!E
|
Shift up to the exponent level and decrease the character size by a factor of 0.44.
|
!I
|
Shift down to the index level and decrease the character size by a factor of 0.44.
|
!L
|
Shift down to the second level subscript. Decrease the character size by a factor of 0.62.
|
!M
|
Switch to the math/symbol font for one character, then switch back.
|
!N
|
Shift back to the normal level and original character size.
|
!R
|
Restore position. The current position is set from the top of the saved positions stack.
|
!S
|
Save position. The current position is saved on the top of the saved positions stack.
|
!U
|
Shift to upper subscript level. Decrease the character size by a factor of 0.62.
|
!X
|
Return to the entry font.
|
!Z(u0,u1,...,un)
|
Display one or more character glyphs according to their Unicode value. Each ui within the parentheses will be interpreted as a 16-bit hexadecimal Unicode value. If more than one Unicode value is to be included, the values should be separated by commas.
|
!!
|
Display the ! symbol.
|
No comments:
Post a Comment