Op donderdag 24 december 2009 schreef Dmytro:

> So... This, please see below, does not work, i don't know why either:
> 
> % -------------------
> localComposerFont = #"AntiquaPSCyr Italic"
> 
> #(define-markup-command (Composer layout props word) (string?)
>   (interpret-markup layout props
>     (markup
>       #:larger
>       #:override '(font-name . localComposerFont)
>       #:italic
>         word)))
> % -------------------

It doesn't work because the override pair is quoted (localComposerFont is 
regarded as a symbol instead of a variable referring to a string).

The following works:

localComposerFont = #"AntiquaPSCyr Italic"

% -------------------
#(define-markup-command (Composer layout props word) (string?)
  (interpret-markup layout props
    (markup
      #:larger
      #:override (cons 'font-name localComposerFont)
      #:italic
      word)))
% -------------------
\header {
  composer = \markup \Composer #"Fill me!"
}


best regards,
Wilbert Berendsen

-- 
Frescobaldi, LilyPond editor for KDE: http://www.frescobaldi.org/
Nederlands LilyPond forum: http://www.lilypondforum.nl/


_______________________________________________
lilypond-user mailing list
lilypond-user@gnu.org
http://lists.gnu.org/mailman/listinfo/lilypond-user

Reply via email to