font font [[encoding] scale]

Default Command line Scope Available in

Define a font.

This parameter defines the width factor (scale) to apply to the Time-Roman character width.
It is needed to adjust the string width when the computation using the default scale gives erroneous values:

It is also required with PostScript output when specific fonts are defined later in ABC files/tunes. In this case, it must appear before any generation occurs, i.e. at the beginning of the file header or in a format file.

%abc-2.2 %%singleline 1
X:1 M:C L:1/4 %%annotationfont DejaVuSans-Bold 12 K:C "^annotation1"c"^annotation2"ccc |
X:2 M:C L:1/4 %%font DejaVuSans-Bold 1.6 %%annotationfont DejaVuSans-Bold 12 K:C "^annotation1"c"^annotation2"ccc |