font font [[encoding] scale]

Default Scope Available in
nonepageabcm2ps
abc2svg


Define a font.

This parameter is required with abcm2ps and 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.

This parameter may also define the width factor (scale) to apply to the internal character width.

It is useful when the computation using the default scale gives erroneous values:

When abc2svg is run inside a web browser, this factor is not used (that's why this document is statically generated).

%abc-2.2
%%singleline 1

X:1
M:C
L:1/4
%%gchordfont DejaVuSans-Bold 14 box
K:F
"Gm7/C"F"C7b9"G"F"F2 |

X:2
M:C
L:1/4
%%font DejaVuSans-Bold 1.6
%%gchordfont DejaVuSans-Bold 14 box
K:F
"Gm7/C"F"C7b9"G"F"F2 |
 Gm7/C C7♭9 F
 Gm7/C C7♭9 F