Re: mixed pango/foreign layout

Luca Padovani <lpadovan cs unibo it> wrote at Mon, 02 Feb 2004 22:46:23 +0100:
> I'd like to interleave some text layed out by pango with foreign objects
> which are layed out by a distinct rendering engine. Now, assuming I can
> handle (or ignore) issues like text direction, what is the most
> efficient and easy way of doing this?

If you know the size of the foreign objects, you can use a shape
attribute (use pango_attr_shape_new()) to tell Pango the size of the

I use the Unicode OBJECT REPLACEMENT CHARACTER, U+FFFC, as the "text"
for external graphics, but you could presumably use some identifying
string if Pango isn't going to do anything with the "text" that has a
shape attribute.

Pango 1.2, AFAICT, doesn't provide any hooks for calling alternative
renderers when it gets to rendering foriegn objects, so I can't tell
you how to do that step.


Tony Graham
XML Technology Center - Dublin
Sun Microsystems Ireland Ltd                       Phone: +353 1 8199708
Hamilton House, East Point Business Park, Dublin 3            x(70)19708

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