|
From: | Jan-Peter Voigt |
Subject: | Re: Access font-name in markup functions |
Date: | Wed, 25 Apr 2012 10:37:22 +0200 |
User-agent: | Mozilla/5.0 (X11; Linux i686; rv:11.0) Gecko/20120327 Thunderbird/11.0.1 |
Hello Urs, if you are using the current devel version, you can wrap any markup with #{ #} --snip-- \version "2.15.37" #(define-markup-command (nfont layout props arg)(markup?) (interpret-markup layout props #{ \markup { \override #'(font-name . "DejaVu Sans") $arg } #})) \markup { \nfont "Hallo" } --snip-- If you are using pre-2.15 or want to do more fancy things with properties/overrides, you might try this: An override in a markup, modifies the properties for the markup to interpret. So a (cons alist props) can do the same: --snip-- #(define-markup-command (xfont layout props arg)(markup?) (interpret-markup layout (cons '((font-name . "DejaVu Sans")) props) arg) ) \markup { \xfont "Hallo" } --snip-- HTH Cheers, Jan-Peter On 25.04.2012 10:15, Urs Liska wrote: Hello community, |
[Prev in Thread] | Current Thread | [Next in Thread] |