Discussion:
override lyric font size
Gerard McConnell
2010-01-14 12:16:03 UTC
Permalink
Hello,
Here I want to change the font size of the lyrics. I've placed

\override #' font-size = # -2

before \addlyrics, just after it, inside the brackets, and various other
combinations with << >>. How do I make the lyrics smaller here?
And probably more important, is there a way I should be looking at this
problem that will allow me to figure similar ones out by myself?
(example: I can't figure out why the extra { } is required inside \score { }.)

\version "2.12.2"

\layout {
ragged-right = ##f
}
\score {
{
\set Staff.instrumentName = "1"
\clef bass
\time 2/4
\relative c {
c8 c c4 d8 d d4 e8 e e4 c2 \bar "|."
}

\addlyrics {One and Two One and Two }
}
}
Thanks,
Gerard
Mats Bengtsson
2010-01-14 12:25:08 UTC
Permalink
You should find answers to these questions in the Learning Manual,
especially in Sections "4 Tweaking output" and "3.1.2 Score is a
(single) compound musical expression".

/Mats
Post by Gerard McConnell
Hello,
Here I want to change the font size of the lyrics. I've placed
\override #' font-size = # -2
before \addlyrics, just after it, inside the brackets, and various other
combinations with << >>. How do I make the lyrics smaller here?
And probably more important, is there a way I should be looking at this
problem that will allow me to figure similar ones out by myself?
(example: I can't figure out why the extra { } is required inside \score { }.)
\version "2.12.2"
\layout {
ragged-right = ##f
}
\score {
{
\set Staff.instrumentName = "1"
\clef bass
\time 2/4
\relative c {
c8 c c4 d8 d d4 e8 e e4 c2 \bar "|."
}
\addlyrics {One and Two One and Two }
}
}
Thanks,
Gerard
------------------------------------------------------------------------
_______________________________________________
lilypond-user mailing list
http://lists.gnu.org/mailman/listinfo/lilypond-user
--
=============================================
Mats Bengtsson
Signal Processing
School of Electrical Engineering
Royal Institute of Technology (KTH)
SE-100 44 STOCKHOLM
Sweden
Phone: (+46) 8 790 8463
Fax: (+46) 8 790 7260
Email: ***@ee.kth.se
WWW: http://www.s3.kth.se/~mabe
=============================================
Mats Bengtsson
2010-01-14 12:32:45 UTC
Permalink
You should also look at Section "3.3.4 Modifying context properties"
which mentions the fontSize property which is a so-called context
property and affects the font size of everything that's printed within
the current so- called context (such as the Lyrics context used to
typeset your lyrics). This gives the simplest solution in your example:

...
\addlyrics {\set fontSize = #-2 One and Two One and Two }
...


/Mats
Post by Mats Bengtsson
You should find answers to these questions in the Learning Manual,
especially in Sections "4 Tweaking output" and "3.1.2 Score is a
(single) compound musical expression".
/Mats
Post by Gerard McConnell
Hello,
Here I want to change the font size of the lyrics. I've placed
\override #' font-size = # -2
before \addlyrics, just after it, inside the brackets, and various other
combinations with << >>. How do I make the lyrics smaller here?
And probably more important, is there a way I should be looking at this
problem that will allow me to figure similar ones out by myself?
(example: I can't figure out why the extra { } is required inside \score { }.)
\version "2.12.2"
\layout {
ragged-right = ##f
}
\score {
{
\set Staff.instrumentName = "1"
\clef bass
\time 2/4
\relative c {
c8 c c4 d8 d d4 e8 e e4 c2 \bar "|."
}
\addlyrics {One and Two One and Two }
}
}
Thanks,
Gerard
------------------------------------------------------------------------
_______________________________________________
lilypond-user mailing list
http://lists.gnu.org/mailman/listinfo/lilypond-user
--
=============================================
Mats Bengtsson
Signal Processing
School of Electrical Engineering
Royal Institute of Technology (KTH)
SE-100 44 STOCKHOLM
Sweden
Phone: (+46) 8 790 8463
Fax: (+46) 8 790 7260
Email: ***@ee.kth.se
WWW: http://www.s3.kth.se/~mabe
=============================================
Dmytro O. Redchuk
2010-01-14 12:34:08 UTC
Permalink
Post by Gerard McConnell
Hello,
Here I want to change the font size of the lyrics. I've placed
\override #' font-size = # -2
before \addlyrics, just after it, inside the brackets, and various other
combinations with << >>. How do I make the lyrics smaller here?
You can override font-size in \layout block:

\layout {
ragged-right = ##f

\context {
\Score
\override LyricText #'font-size = #-2
}
}
Post by Gerard McConnell
And probably more important, is there a way I should be looking at this
problem that will allow me to figure similar ones out by myself?
You can use explicitly instantiated named contexts and set font-size on
per-context basic, see below.
Post by Gerard McConnell
(example: I can't figure out why the extra { } is required inside \score { }.)
\version "2.12.2"
\layout {
ragged-right = ##f
}
\score {
{
\set Staff.instrumentName = "1"
\clef bass
\time 2/4
\relative c {
c8 c c4 d8 d d4 e8 e e4 c2 \bar "|."
}
\addlyrics {One and Two One and Two }
}
}
\score {
\new Staff <<
\set Staff.instrumentName = "1"
\clef bass
\time 2/4
\new Voice = "melody" {
\relative c {
c8 c c4 d8 d d4 e8 e e4 c2 \bar "|."
}
}
\new Lyrics \with {
\override LyricText #'font-size = #-2
} \lyricsto "melody" { One and Two One and Two }
}

(You can use variables for melody and lyrics to have cleaner \score
block).
Post by Gerard McConnell
Thanks,
Gerard
--
Dmytro O. Redchuk <***@gmail.com>
Mats Bengtsson
2010-01-14 12:43:15 UTC
Permalink
None of these answers provide a method that also can be used to change
the setting in the middle of the score.
I'd say that the most immediate answer to the original question is to use
...
\addlyrics { \override LyricText #'font-size = #-2 One and Two
One and Two }
...
even though the alternative to use the context property fontSize is
perhaps even simpler in this particular example, as I pointed out earlier.

/Mats
Post by Gerard McConnell
Post by Gerard McConnell
Hello,
Here I want to change the font size of the lyrics. I've placed
\override #' font-size = # -2
before \addlyrics, just after it, inside the brackets, and various other
combinations with << >>. How do I make the lyrics smaller here?
\layout {
ragged-right = ##f
\context {
\Score
\override LyricText #'font-size = #-2
}
}
Post by Gerard McConnell
And probably more important, is there a way I should be looking at this
problem that will allow me to figure similar ones out by myself?
You can use explicitly instantiated named contexts and set font-size on
per-context basic, see below.
Post by Gerard McConnell
(example: I can't figure out why the extra { } is required inside \score { }.)
\version "2.12.2"
\layout {
ragged-right = ##f
}
\score {
{
\set Staff.instrumentName = "1"
\clef bass
\time 2/4
\relative c {
c8 c c4 d8 d d4 e8 e e4 c2 \bar "|."
}
\addlyrics {One and Two One and Two }
}
}
\score {
\new Staff <<
\set Staff.instrumentName = "1"
\clef bass
\time 2/4
\new Voice = "melody" {
\relative c {
c8 c c4 d8 d d4 e8 e e4 c2 \bar "|."
}
}
\new Lyrics \with {
\override LyricText #'font-size = #-2
} \lyricsto "melody" { One and Two One and Two }
}
(You can use variables for melody and lyrics to have cleaner \score
block).
Post by Gerard McConnell
Thanks,
Gerard
--
=============================================
Mats Bengtsson
Signal Processing
School of Electrical Engineering
Royal Institute of Technology (KTH)
SE-100 44 STOCKHOLM
Sweden
Phone: (+46) 8 790 8463
Fax: (+46) 8 790 7260
Email: ***@ee.kth.se
WWW: http://www.s3.kth.se/~mabe
=============================================
Dmytro O. Redchuk
2010-01-14 13:23:28 UTC
Permalink
Post by Mats Bengtsson
None of these answers provide a method that also can be used to change
the setting in the middle of the score.
Yes, thanks :-)
Post by Mats Bengtsson
I'd say that the most immediate answer to the original question is to use
...
\addlyrics { \override LyricText #'font-size = #-2 One and Two
One and Two }
...
even though the alternative to use the context property fontSize is
perhaps even simpler in this particular example, as I pointed out earlier.
/Mats
--
Dmytro O. Redchuk
Trevor Daniels
2010-01-14 12:49:15 UTC
Permalink
You're relying on several short-cuts here,
which occasionally do not work the way you
expect. When inexplicable errors occur it
is often useful to add all the \new ...
commands explicitly.

Also the syntax of the override command is
incorrect. As Mats said, most of the problems
will go away if you read the Learning Manual
(again, if necessary) and apply what you learn
there.

Slightly trickier is changing the fontsize of
all Lyrics (only). The easiest way is to set
the fontsize of LyricText in the Score context.

Trevor

----- Original Message -----
From: "Gerard McConnell" <***@indigo.ie>
To: <lilypond-***@gnu.org>
Sent: Thursday, January 14, 2010 12:16 PM
Subject: override lyric font size


Hello,
Here I want to change the font size of the lyrics. I've placed

\override #' font-size = # -2

before \addlyrics, just after it, inside the brackets, and various
other
combinations with << >>. How do I make the lyrics smaller here?
And probably more important, is there a way I should be looking at
this
problem that will allow me to figure similar ones out by myself?
(example: I can't figure out why the extra { } is required inside
\score { }.)

\version "2.12.2"

\layout {
ragged-right = ##f
}
\score {
{
\set Staff.instrumentName = "1"
\clef bass
\time 2/4
\relative c {
c8 c c4 d8 d d4 e8 e e4 c2 \bar "|."
}

\addlyrics {One and Two One and Two }
}
}
Thanks,
Gerard



--------------------------------------------------------------------------------
Post by Gerard McConnell
_______________________________________________
lilypond-user mailing list
http://lists.gnu.org/mailman/listinfo/lilypond-user
Wilbert Berendsen
2010-01-14 23:46:31 UTC
Permalink
Post by Gerard McConnell
Here I want to change the font size of the lyrics. I've placed
\override #' font-size = # -2
before \addlyrics, just after it, inside the brackets, and various other
combinations
You must also specify what type of objects you want to set the font-size for.
This will work.

{ c' d' e' f' g' }
\addlyrics {
\override LyricsText #'font-size = #2
One two three four five
}

you can also just use:

{ c' d' e' f' g' }
\addlyrics {
\huge One two three \teeny four five
}

best regards,
Wilbert Berendsen
--
Frescobaldi, LilyPond editor for KDE: http://www.frescobaldi.org/
Nederlands LilyPond forum: http://www.lilypondforum.nl/
Loading...