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
_______________________________________________
lilypond-devel mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/lilypond-devel