set fontdef number family <slant <weight>>
This command allows the user to define a new Cairo font. It is
number
must be between 13 and 99.
family
a font family name, must be < 100 characters (e.g. times, verdana, courier, symbol, lucida, et al.)
slant
must be: normal
(default), italic
, or oblique
weight
must be: normal
(default), or bold
This command is only available in GrADS version 2.1.a0+, when new font controls were introduced with Cairo graphics. Please read the documentation page on Font Control in GrADS for more information. This documentation page also explans how to temporarily override the font in a string of text by using the back quote character (`).
Font numbers 10 -12 are predefined as standard generic names: sans-serif, serif, monospace.
If the named font family is not available, then the display defaults to font 10 (sans-serif) .
set fontdef 13 courier set fontdef 14 courier italic bold set fontdef 15 courier italic normal set fontdef 16 courier normal bold draw string 1 1 `f13For emphasis, use `f15italic, `f16bold, `f13or `f14both