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.



_______________________________________________
bug-lilypond mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/bug-lilypond

Reply via email to