[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Combining graphics and text in one stencil?
From: |
David Kastrup |
Subject: |
Re: Combining graphics and text in one stencil? |
Date: |
Wed, 21 Aug 2013 07:22:45 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (gnu/linux) |
Mark Polesky <address@hidden> writes:
> I'm able to write my own graphical stencils using
> ly:make-stencil, and I also can override stencils with
> text or markup using the ly:text-interface::print
> callback, but now I want to make one stencil with
> graphics *and* text, and I can't figure out how to do
> that.
>
> Is there some way to achieve something akin to this:
> (ly:make-stencil (list 'string "foo"))
>
> That would be my preference.
>
> I experimented with
> (ly:make-stencil (list 'char ...))
>
> but I couldn't get it to do anything. output-ps.scm is
> very difficult to follow with no docstrings. Ugh. Any
> advice is appreciated.
It's called interpret-markup and you obviously need layout and props for
it. One variant that gets them itself from a grob is
grob-interpret-markup.
--
David Kastrup