bug-lilypond
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Scaling global staff size without scaling Lyrics in LilyPond version 2.1


From: Mirosław Doroszewski
Subject: Scaling global staff size without scaling Lyrics in LilyPond version 2.18.2.
Date: Tue, 20 Dec 2016 20:48:01 +0100

\version "2.18.2"
\include "deutsch.ly"

%{
Scaling global staff size without scaling Lyrics in LilyPond version 2.18.2.

1. It can be happen: when font size is set for lyrics, that titles are
smaller then lyrics.
a) I do not know how increase font size for titles. I tried some ways
according to manuals but they did not help.
b) Changing staff size with setting font families for entire document
(non 20pt) implies ugly effect.
2. When customer wants to set variable staff size and get the same
size of lyrics for each staff size, he need to set font size of
lyrics' context for each staff size separately.
3. For instance to get real font size for lyrics 10pt for paper size A6:
a) when staff size = 12pt, font size overriding of lyrics = 3.7;
b) when staff size = 16pt, font size overriding of lyrics = 1.3.
4. So, please, make solution and describe it in manual.
%}

\paper {
        #(set-paper-size "a6" 'portrait)
        indent = 0\mm
        ragged-bottom = ##t
        ragged-last-bottom = ##t
        top-margin = 1 \cm
        bottom-margin = 1 \cm
        line-width = 8.8 \cm
        tagline = ##f
}

#(set-global-staff-size 12.0)
\layout {
        \context {
                \Lyrics
                        \override LyricText #'font-size = #3.7
                        \override StanzaNumber #'font-size = #3.7
                        \override InstrumentName #'font-size = #3.7
                }
        }
}

t = { \bar "" }

\score {
        \layout {
                \context { \Staff \remove "Time_signature_engraver" }
                ragged-last = ##f
        }
        \relative c' {
                \transpose e d' {
                        \key e \minor
                        \time 1/8       
                        \autoBeamOff
                        \cadenzaOn      
                        e8 \t e \t dis4 \t e \bar "'" e8 \t e \t dis4 \t e \bar 
"'"
                        g8 \t g \t g4 \t fis8 \t e \t fis4 \t fis \bar "'"
                        fis8 \t fis \t g \t e \t dis!4 \t e \bar ":|.|:"
                        \bar ":|.|:"
                        e8 \t fis \t g \t g \t g \t g \t g \t fis \t e \t fis4 
\t fis \bar "'"
                        fis \t g8[ \t fis] \t e \t dis!4 \t e \bar ":|.|:"
                        \bar ":|.|:"
                        e8[ \t fis] \t g \t g \t g \t g \t g \t fis \t e \t 
fis4 \t fis \bar "'"
                        fis8 \t fis \t g[ \t fis] \t e \t dis!4 \t e \bar ":|."
                        \cadenzaOff
                }
        }
        \addlyrics {
                Świę- ty Bo- że, Świę- ty moc- ny,
                Świę- ty, a nie- śmier- tel- ny,
                zmi- łuj się nad na- mi!
                Od po- wie- trza, gło- du, o- gnia i woj- ny
                wy- baw nas, Pa- nie!
                Od na- głej, a nie- spo- dzia- nej, śmier- ci
                za- cho- waj nas, Pa- nie!
        }
}

Attachment: Scaling global staff size without scaling Lyrics.pdf
Description: Adobe PDF document


reply via email to

[Prev in Thread] Current Thread [Next in Thread]