Credits Overview Plotting Styles Commands Terminals

cgm font

The first part of a Computer Graphics Metafile, the metafile description, includes a font table. In the picture body, a font is designated by an index into this table. By default, this terminal generates a table with the following 35 fonts, plus six more with italic replaced by oblique, or vice-versa (since at least the Microsoft Office and Corel Draw CGM import filters treat italic and oblique as equivalent):

CGM fonts
HelveticaHershey/Cartographic_Roman
Helvetica BoldHershey/Cartographic_Greek
Helvetica ObliqueHershey/Simplex_Roman
Helvetica Bold ObliqueHershey/Simplex_Greek
Times RomanHershey/Simplex_Script
Times BoldHershey/Complex_Roman
Times ItalicHershey/Complex_Greek
Times Bold ItalicHershey/Complex_Italic
CourierHershey/Complex_Cyrillic
Courier BoldHershey/Duplex_Roman
Courier ObliqueHershey/Triplex_Roman
Courier Bold ObliqueHershey/Triplex_Italic
SymbolHershey/Gothic_German
ZapfDingbatsHershey/Gothic_English
ScriptHershey/Gothic_Italian
15Hershey/Symbol_Set_1
Hershey/Symbol_Set_2
Hershey/Symbol_Math

The first thirteen of these fonts are required for WebCGM. The Microsoft Office CGM import filter implements the 13 standard fonts listed above, and also 'ZapfDingbats' and 'Script'. However, the script font may only be accessed under the name '15'. For more on Microsoft import filter font substitutions, check its help file which you may find here:

  C:\Program Files\Microsoft Office\Office\Cgmimp32.hlp

and/or its configuration file, which you may find here:

  C:\Program Files\Common Files\Microsoft Shared\Grphflt\Cgmimp32.cfg

In the set term command, you may specify a font name which does not appear in the default font table. In that case, a new font table is constructed with the specified font as its first entry. You must ensure that the spelling, capitalization, and spacing of the name are appropriate for the application that will read the CGM file. (Gnuplot and any MIL-D-28003A compliant application ignore case in font names.) If you need to add several new fonts, use several set term commands.

Example:

      set terminal cgm 'Old English'
      set terminal cgm 'Tengwar'
      set terminal cgm 'Arabic'
      set output 'myfile.cgm'
      plot ...
      set output

You cannot introduce a new font in a set label command.