next up previous contents index
Next: Fontsize Up: Cgm Previous: Cgm   Contents   Index


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
  Helvetica  
  Helvetica Bold  
  Helvetica Oblique  
  Helvetica Bold Oblique  
  Times Roman  
  Times Bold  
  Times Italic  
  Times Bold Italic  
  Courier  
  Courier Bold  
  Courier Oblique  
  Courier Bold Oblique  
  Symbol  
  Hershey/Cartographic_Roman  
  Hershey/Cartographic_Greek  
  Hershey/Simplex_Roman  
  Hershey/Simplex_Greek  
  Hershey/Simplex_Script  
  Hershey/Complex_Roman  
  Hershey/Complex_Greek  
  Hershey/Complex_Script  
  Hershey/Complex_Italic  
  Hershey/Complex_Cyrillic  
  Hershey/Duplex_Roman  
  Hershey/Triplex_Roman  
  Hershey/Triplex_Italic  
  Hershey/Gothic_German  
  Hershey/Gothic_English  
  Hershey/Gothic_Italian  
  Hershey/Symbol_Set_1  
  Hershey/Symbol_Set_2  
  Hershey/Symbol_Math  
  ZapfDingbats  
  Script  
  15  
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.


next up previous contents index
Next: Fontsize Up: Cgm Previous: Cgm   Contents   Index
Ethan Merritt 2007-03-03