lilypond-devel
[Top][All Lists]
Advanced

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

C++ question:


From: Knut Petersen
Subject: C++ question:
Date: Thu, 19 Jan 2017 15:24:54 +0100
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.6.0

Hi everybody!


Is there an equivalent of  \with-dimensions #'(0 . 0) #'(0 . 0) that can be 
used on a stencil within the C++ part of lilypond?

If not: I thought I could work around that problem  by constructing and using a 
markup:

          SCM properties = Font_interface::text_font_alist_chain (me);
          SCM ws_mol = Text_interface::interpret_markup (me->layout ()->self_scm (), 
properties, ly_string2scm ("\\markup {\\bold foo}"));
          Stencil ws = *unsmob<Stencil> (ws_mol);

That emits "\markup {\bold foo}" instead of the result of the interpreted 
markup. If I define a property test-markup,
replace 'ly_string2scm ("\\markup {\\bold foo}")' with something like  'me->get_property 
("test-markup")' the code works
as expected. So ly_string2scm is not enough ... I need a string2markup(). Any 
idea?


 Knut



reply via email to

[Prev in Thread] Current Thread [Next in Thread]