5. Fonts

5 Fonts

5.1 The Font Model

Text related objects can be handled with the font option {font,Font}. A Font is represented as a two or three tuple:

  • {Family,Size}
  • {Family,Style,Size}

Examples of fonts are: {times,12}, {symbol,bold,18}, {courier,[bold,italic],6}, {screen,12}.

The most important requirement with the font model is to ensure that there is always a "best possible" font present. For example, if an application tries to use the font {times,17} on a computer system which does not have this font available, the gs font model automatically substitutes {times,16}.

Note that GS requires that the following font