lilypond-user
[Top][All Lists]
Advanced

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

Re: [SPAM] Re: See the new music fonts in action


From: Urs Liska
Subject: Re: [SPAM] Re: See the new music fonts in action
Date: Sat, 02 Aug 2014 12:02:15 +0200
User-agent: K-9 Mail for Android

Just one question before I can make a patch from this: which Lilypond version is this file derived from? (I need to know that in order not to discard any work others may have done in that file).

Urs

Urs

On 1. August 2014 21:46:13 MESZ, Abraham Lee <address@hidden> wrote:
On Thu, Jul 31, 2014 at 12:07 PM, Urs Liska <address@hidden> wrote:
Or send me the latest version of the file. Urs

Urs,

Here's the newest version of "font.scm". I decided to create my own function after all so that make-pango-font-tree (at least from the user's perspective) follows the same syntax, it is only changed under the covers. I'm sure this will trip people up, though, so we'll need to discuss an appropriate solution for that. It doesn't make much sense to me to have all these different functions available that all kind of do the same thing, but behave slightly different from each other. That will only confuse people.

The function "add-music-fonts" still needs to be modified for all this to work.

I call my function (drum roll, please...): "set-global-fonts". It's different in that ALL the font choices are optional, keyword arguments. Thus, if I only want to change the notation font, that's all I need to specify. Here's a minimal example showing all the optional, keyword arguments (and you can't just put in the string values! They MUST be preceded by the key identifier, but any and all can be omitted):

\version "2.18.2"
\include "english.ly"

\paper {
  #(define fonts
     (set-global-fonts
      #:music "lilyjazz"
      #:brace "gonville"
      #:roman "lilyjazztext"
      #:sans "FreeSans"
      #:typewriter "Inconsolata"
      #:factor 1 ; should this EVER NOT be 1?
   ))
}

\header {
  #(set-default-paper-size "a6landscape")
  piece = "Music Sample for Testing"
}

sffz = #(make-dynamic-script "sffz")

sampleMusic = \relative c'' {
  a4\sffz \startTrillSpan bf8 ( \stopTrillSpan
  cs16\prallprall <c! e,>32\accent \arpeggio )
}

\score {
  \new PianoStaff <<
    \new Staff { \clef treble \sampleMusic }
    \new Staff { \clef bass \transpose c' f, \sampleMusic }
  >>
  \layout {}
}

\markup { 
  \sans { Here's some Sans text, 
          \roman { Roman text, } 
          \typewriter "and Monospaced text" 
  } 
}

Let me know what you think!

Regards,
Abraham



lilypond-user mailing list
address@hidden
https://lists.gnu.org/mailman/listinfo/lilypond-user

reply via email to

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