|
From: | Urs Liska |
Subject: | Creating custom articulation using regular text font |
Date: | Wed, 20 Feb 2019 11:53:41 +0100 |
User-agent: | Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.4.0 |
I'm trying to create an articulation printing a glyph from the "regular" text font. Copying from this (working) script definition list: #(define asterisk-list `("asterisk" . ((stencil . ,ly:text-interface::print) (text . ,#{ \markup \musicglyph "pedal.*" #}) ; any other properties (padding . 0.5) (avoid-slur . around) (direction . ,DOWN) (script-priority . 125) ))) I came up with the following: #(define trill-list `("trill" . ((stencil . ,ly:text-interface::print) (text . ,#{ \markup "T" #}) ; any other properties (padding . 0.5) (avoid-slur . around) (direction . ,DOWN) (script-priority . 75) ))) But when I integrate this and compile a file I get no output for the articulation and instead an error message, saying programming error: Cannot get a text stencil from this font I don't quite see why \markup "T" doesn't successfully create a stencil where in a comparable place \markup \musicglyph ... does. Any suggestions what I could do about it? Thanks Urs |
[Prev in Thread] | Current Thread | [Next in Thread] |