| Search Locate Previous Next | Contents |
To make a temporary short code for a non-standard TrueType font:
leaf.DefineFont 'uncl' 'Uncial'
... which will set up the association between the short code uncl and the TrueType font Uncial. If you give a two-character short code, DefineFont will automatically define a full set of four fonts so that:
leaf.DefineFont 'ga' 'Garamond MT' leaf.Font 'gai'
... will set the working font to italic Garamond. If you have the font loaded on a PostScript printer, you can add the PostScript font name as the third element:
leaf.DefineFont 'ga' 'Garamond MT' 'Monotype-Garamond'
If you do not give a PostScript font name, all fonts default to Times-Roman on PostScript devices. Note that NewLeaf assumes that all the required fonts have been pre-loaded into the printer.
NB This method assumes that your PostScript fonts will be suffixed Bold Italic and BoldItalic if this is not the case you must add each font variant individually.
You can make the changes permanent by specifying 1 as the left argument and saving the workspace, but please note that you will need to re-apply your changes every time you upgrade NewLeaf.