lilypond-user
[Top][All Lists]
Advanced

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

Re: Issue with pango font tree and global staff size


From: Phil Holmes
Subject: Re: Issue with pango font tree and global staff size
Date: Sat, 2 Jun 2012 14:32:37 +0100

----- Original Message ----- From: "Tao Cumplido" <address@hidden>
To: <address@hidden>
Sent: Saturday, June 02, 2012 11:45 AM
Subject: Issue with pango font tree and global staff size


Dear list,

I am having a problem with using a custom pango font tree and set-global-staff-size at the same time. If I set the staff size before the \paper block only the staff lines change, the feta glyphs and text don't. But if I set the staff-size after the \paper block it resets the pango font tree to the default lily fonts.

I made two snippets for demonstration. Both tested with 2.14.2 and 2.15.39 with the same results.


%%%%%%%
% 1.ly
%%%%%%%

music = { a4^"Markup" b c' d' }

\paper
{
       #(define fonts
               (make-pango-font-tree
                       "Linux Libertine"
                       "Linux Biolinum"
                       "Courier New"
                       (/ 20 20)))
}

#(set-global-staff-size 15)

\score
{
       << \new Staff \music >>
       \layout { }
}


%%%%%%%
% 2.ly
%%%%%%%

#(set-global-staff-size 15)

music = { a4^"Markup" b c' d' }

\paper
{
       #(define fonts
               (make-pango-font-tree
                       "Linux Libertine"
                       "Linux Biolinum"
                       "Courier New"
                       (/ 20 20)))
}

\score
{
       << \new Staff \music >>
       \layout { }
}

Unfortunately, this is a known bug with Lilypond. See http://code.google.com/p/lilypond/issues/detail?id=1129


--
Phil Holmes



reply via email to

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