Changing stanza fonts: Difference between revisions
Appearance
Import snippet from LSR |
m Replace version="2.24.0" with version="2.24" now that the LilyWiki extension supports auto-selecting the latest release in a stable series |
||
| Line 1: | Line 1: | ||
Fonts can be changed independently for each stanza, including the font used for printing the stanza number. | Fonts can be changed independently for each stanza, including the font used for printing the stanza number. | ||
<lilypond version="2.24 | <lilypond version="2.24"> | ||
%{ | %{ | ||
You may have to install additional fonts. | You may have to install additional fonts. | ||
Revision as of 18:54, 16 November 2025
Fonts can be changed independently for each stanza, including the font used for printing the stanza number.
\version "2.24"
%{
You may have to install additional fonts.
Red Hat Fedora
dejavu-fonts-all
Debian GNU/Linux, Ubuntu
fonts-dejavu-core
fonts-dejavu-extra
%}
\relative c'' {
\time 3/4
g2 e4
a2 f4
g2.
}
\addlyrics {
\set stanza = #"1. "
Hi, my name is Bert.
}
\addlyrics {
\override StanzaNumber.font-name = #"DejaVu Sans"
\set stanza = #"2. "
\override LyricText.font-family = #'typewriter
Oh, ché -- ri, je t'aime
}