Search Locate Previous Next Contents

leaf.Font – set current font (face and pitch)

Current font definition for paragraph text. Expressed as a short code (which refers to leaf.‘fonttbl), the required size in points, and the interline spacing (defaults to 120% of the font size).

leaf.Font 'tib,14/18'

ti,12/18 ... is 12point Times-Roman at 1.5 line spacing
tii,24 ... is 24point Times-Roman Italic (default spacing)
heb,14 ... is 14point Helvetica bold (mapped to Arial bold)
hebi,18 ... is 18point Helvetica bold italic (mapped to Arial)

These abbreviations are all defined in a text matrix called leaf.‘fonttbl, which you may modify as required to add new fonts, or change the abbreviations of those already defined. Note that any changes you make in this way will be lost next time you install a NewLeaf upgrade. Use leaf.DefineFont to make temporary or permanent changes to this table.

You can also use TrueType fonts directly (see leaf.TrueFont), but note that any fonts so defined will not be available if you use the Direct PostScript capability, and are very likely not to work in reports output to HTML where your favourite fonts are probably not present.



Continue to: leaf.Indent – set paragraph indents
© Copyright Causeway Graphical Systems Ltd 2001