lilypond-devel
[Top][All Lists]
Advanced

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

Re: Clarification of 'font' usage to use Gonville over Feta


From: Simon Tatham
Subject: Re: Clarification of 'font' usage to use Gonville over Feta
Date: Wed, 03 Mar 2010 21:47:53 +0000

Han-Wen Nienhuys <address@hidden> wrote:

> I went over to the gonville page, and I like the way it looks, and
> have to concur that we made Feta (perhaps overly) ornate.
> 
> Just a small comment on the flags: I think gonville could be improved
> by making the final flag 16th (both up and down) and higher note
> values slightly smaller.  Since the last flag has no following flag to
> counter balance it, it looks a bit out of proportion.

Thank you for the comment! Yes, I think there was mild criticism of
the flags when I initially mentioned Gonville on this list; I
regrettably haven't got round to looking at them again, but I still
mean to...

Meanwhile, I've just had another go at making Lilypond (2.13.14)
work with Gonville, with a view to updating the Gonville web page to
supersede my current hacky installation instructions. I was able to
get most of the musical glyphs to appear in Gonville, but I haven't
worked out how to get the ASCII parts of the font - the time
signature and dynamics letters - to switch over as seamlessly.

I attach my test input files. 'test.ly' is the starting point,
before I do anything to the font configuration; 'testg.ly' is
transformed as specified in input/regression/gonville.ly (and I also
followed the download instructions also given in that file), which
has the effect of substituting Gonville for the Feta glyphs in the
music itself, but the time signature and dynamics are still in Feta.

The best I've managed to do for those (in testg2.ly) is to add

      \override Staff.TimeSignature #'font-name = #"Gonville"
      \override Staff.TimeSignature #'font-size = #5
      \override DynamicText #'font-name = #"Gonville"
      \override DynamicText #'font-size = #5

in the staff section; that generates a PS output file with Gonville
everywhere I expect it, but only at _approximately_ the right size,
and my guess is that it's hopelessly wrong as a general mechanism
since it won't automatically adapt if the staff size is
reconfigured. (Plus, of course, I apparently have to specify it
separately for every staff if I do it this way.)

Is there a more sensible piece of configuration language I should be
using for this part of the job? I wasn't able to find anything in
the docs, I'm afraid.

Cheers,
Simon
-- 
Simon Tatham         What do we want?        ROT13!
<address@hidden>   When do we want it?     ABJ!
% trivial hello-world score making use of time signature digits and
% dynamics letters

\version "2.13.14"

\header { title = "Testing 1 2 3" }

\score {
  \new Staff {
    \clef treble
    \time 3/4
    a'4 \mp b' c'' d'' e''1 \ff
  }
}
% test.ly, but trying to use Gonville

\version "2.13.14"

\paper {
  #(add-music-fonts fonts "gonville" 'gonville (/ staff-height (* 20 pt)))
}

\header { title = "Testing 1 2 3" }

\score {
  \new Staff {
    \clef treble
    \time 3/4
    a'4 \mp b' c'' d'' e''1 \ff
  }
  \layout {
    #(define font-defaults
       '((font-family . gonville) (font-encoding . fetaMusic)))
  }
}
% testg.ly, but trying to use Gonville for time signature and
% dynamics too

\version "2.13.14"

\paper {
  #(add-music-fonts fonts "gonville" 'gonville (/ staff-height (* 20 pt)))
}

\header { title = "Testing 1 2 3" }

\score {
  \new Staff {
    \clef treble
    \override Staff.TimeSignature #'font-name = #"Gonville"
    \override Staff.TimeSignature #'font-size = #5
    \override DynamicText #'font-name = #"Gonville"
    \override DynamicText #'font-size = #5
    \time 3/4
    a'4 \mp b' c'' d'' e''1 \ff
  }
  \layout {
    #(define font-defaults
       '((font-family . gonville) (font-encoding . fetaMusic)))
  }
}

reply via email to

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