xxxfont font_name [encoding] [size] [arguments]

Scope Available in
immediate abcm2ps
abc2svg


xxx is the music element type.

Commands

  Music element Default value
annotationfont annotation sans-serif 12
capofont capo sans-serif 12
composerfont composer field in tune header serifItalic 14
footerfont page footer serif 16
gchordfont chord symbol sans-serif 12
gridfont grid serif 16
headerfont page header serif 16
historyfont history and other tune relative information serif 16
infofont info line (R: and A:) in tune header serifItalic 14
measurefont measure number serifItalic 10
partsfont parts (P:) serif 15
repeatfont repeat sequence number/text serif 13
setfont-n ancillary fonts (none) 12
subtitlefont subtitle serif 16
tempofont tempo (Q:) serifBold 15
textfont text serif 16
titlefont tune title serif 20
vocalfont lyrics under staff serifBold 13
voicefont voice name serifBold 13
wordsfont lyrics under tune serif 16

Arguments

The arguments are not available with abcm2ps.
box or nobox
Draw or not a box around the text
class=class_name
Set a class for CSS definitions
wadj=type
Define the length adjustment type:
none
don't adjust
space
adjust with spacing
glyph
adjust with spacing and glyphs
This argument is not used when abc2svg is run inside a web browser (that's why this document is statically generated).

Examples

%abc-2.2
%%pagewidth 14cm
%%titlefont * * box
%%historyfont sans-serifItalic 12
%%writefields HN 1
%%beginsvg

%%endsvg
%%setfont-1 sans-serifBold 12 class=green

X:1
T:Tune title in a box
M:C
L:1/4
H:Version 1.18.3: 'wadj=' added
N:"$1wadj=$0" is usefull when the font
+:is replaced by an other one by the browser
N:Also, below, the computation of the length
+:with the font "$1monospace$0" is wrong
K:C
"^annotation"cc\
%%annotationfont * 16
"^bigger font"cc |\
%%gchordfont * 26
"G"GAB2 | c4|]

%%vskip 1cm

%%textfont monospace * box
%%text text without length adjustment

%%textfont * * wadj=space
%%text text adjusted by spacing

%%textfont * * wadj=glyph
%%text text adjusted by spacing and glyph
Tune title in a box annotation bigger font G Notes: "wadj=" is usefull when the font is replaced by an other one by the browser Also, below, the computation of the length with the font "monospace" is wrong
History: Version 1.18.3: 'wadj=' added
text without length adjustment
text adjusted by spacing
text adjusted by spacing and glyph