[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: using variable within make-pango-font-tree
From: |
David Kastrup |
Subject: |
Re: using variable within make-pango-font-tree |
Date: |
Thu, 02 Jun 2016 12:42:41 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/25.1.50 (gnu/linux) |
menelikke <address@hidden> writes:
> Hi
>
> does anybody knows if and how is possibile to use a variable within
> "make-pango-font-tree" function, please?
>
> I'm using
>
> \version "2.18.2" % necessary for upgrading to future LilyPond versions.
> \include "global.ly"
> \paper {
> #(define fonts
> (make-pango-font-tree \docfont
> "Arial"
> "Arial"
> (/ staff-height pt 25)
> )
> )
> .
> .
>
> where docfont is a variable defined as
>
> docfont = "Papyrus"
>
> in the external "global.ly" file.
>
> Using that i get a "GUILE" error at expression starting from here
> #
> (define fonts
>
> Please note that
> docfont = "\"Papyrus\""
> doesn't work too.
You are in Scheme already within the define, so you just need to write
docfont instead of \docfont here.
--
David Kastrup