[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
- C++ question:,
Knut Petersen <=
- Re: C++ question:, David Kastrup, 2017/01/20
- Re: C++ question:, Knut Petersen, 2017/01/20
- Re: C++ question:, David Kastrup, 2017/01/20
- Re: C++ question:, Knut Petersen, 2017/01/20
- Re: C++ question:, David Kastrup, 2017/01/20
- Re: C++ question:, Knut Petersen, 2017/01/21
- Re: C++ question:, Knut Petersen, 2017/01/22
- Re: C++ question:, David Kastrup, 2017/01/22
- [PATCH] no-outline-stencil backend property, Knut Petersen, 2017/01/24
- Re: [PATCH] no-outline-stencil backend property, David Kastrup, 2017/01/24