lilypond-user
[Top][All Lists]
Advanced

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

Re: setting markup font name inside scm


From: fernando . alfonso . frias . melendez
Subject: Re: setting markup font name inside scm
Date: Tue, 6 Nov 2007 20:36:58 -0600

Hi.
 
I found the solution simply adding the ' character before the (font-name . "Vera Bold") :
 
'(font-name . "Vera Bold")
 
and this works using font-family too.
 
Thanks!.

 
-----Fernando Alfonso Frias Melendez/MEX/MAIL wrote: -----

To: address@hidden
From: Fernando Alfonso Frias Melendez/MEX/MAIL
Date: 10/30/2007 11:13AM
Subject: setting markup font name inside scm

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]