bug-lilypond
[Top][All Lists]
Advanced

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

Pango font tree not handled at non-default score size


From: Jiri Zurek (Prague)
Subject: Pango font tree not handled at non-default score size
Date: Tue, 26 Jan 2010 07:48:08 -0800 (PST)

Fonts set in the make-pango-font-tree are used only in the default score
size. As soon as the score size is changed with the layout-set-staff-size to
any specific value, the fonts used for the lyrics become the default (a sort
of Century Schoolbook). This behavior is observed at least throughout the
versions 2.12.2-2.13.11 


I need that the lyrics in the whole book is typeset with the specific font
regardless of the size of the corresponding staff. Is there a workaround to
the above mentioned bug?

Here, find an example of the bug (silly Arial is used to override the
default serif font here):

%begin lilypond
\version "2.12.1"
\include "gregorian_upr.ly"

\paper {
% change fonts to non default
#(define fonts
    (make-pango-font-tree "Arial"
                          "Nimbus Sans"
                          "Luxi Mono"
                           (/ 20 20)))
}

\score { 
 << 
    \new Voice = "cantus" { \clef "G_8" c8  d e f  } 
    \new Lyrics 
       \lyricsto "cantus" { \lyricmode { Al -- le -- lu -- ia.     } }
  >>
  \layout { }
}
%%%%%%%%%%%%%   Bigger Score - inadvertedly default font   
%%%%%%%%%%%%%%%%%

\score { 
 << 
    \new Voice = "cantus" { \clef "G_8" c8  d e f  } 
    \new Lyrics 
       \lyricsto "cantus" { \lyricmode { Al -- le -- lu -- ia.     } }
  >>
  \layout {
  #(layout-set-staff-size 30)

  }
}
%end lilypond
-- 
View this message in context: 
http://old.nabble.com/Pango-font-tree-not-handled-at-non-default-score-size-tp27324760p27324760.html
Sent from the Gnu - Lilypond - Bugs mailing list archive at Nabble.com.





reply via email to

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