lilypond-user
[Top][All Lists]
Advanced

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

setting markup font name inside scm


From: fernando . alfonso . frias . melendez
Subject: setting markup font name inside scm
Date: Tue, 30 Oct 2007 11:13:44 -0600

Hi!.
 
i'm trying to set the font name inside a scm function for a markup command
but i get this message:
 
GNU LilyPond 2.10.33
Processing `example.ly'
Parsing...ERROR: Unbound variable: font-name
 
the file compiles ok if i comment this line:
;                #:override (font-name . "Vera Bold")
 
 
how can i modify the font inside the music function?, is there a another
way to acces the override from scm?
 
any suggestion are welcome!.
 
Thanks!.
 
 
\version "2.10.0"
 
marcaa = #(define-music-function (parser location) ()
         (make-music
           'EventChord
           'elements
           (list (make-music
                   'NoteEvent
                   'duration
                   (ly:make-duration 2 0 1 1)
                   'pitch
                   (ly:make-pitch -1 1 0))
                 (make-music
                 'TextScriptEvent
                 'direction
                 1
                 'text
                 (markup
                 #:line (
                 #:override (font-name . "Vera Bold")
                  "nota")))))
)
 
\score{
         <<
         \new Staff \relative c''{
                 \marcaa
         }
         >>
}


reply via email to

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