Re: Drawing text to local memory pixmap with Pango

On Sat, 7 May 2005, Daniel Werner wrote:

> Hi, this is my first post to this list, hello :)


> time to start drawing text, and it seems Pango is the way to go. I only
> want to render to offscreen, non-X11 memory that is allocated by my
> toolkit. My problem is that I can't get any good information from web
> searches on how to use Pango this way. I saw an example where someone
> used GTK to render the text via Pango, and then read the bitmap pixels
> into memory and made quads out of this, an inneficient solution, plus I
> don't want to use GTK, just Pango. Can anyone point me in the right
> direction?

There is an example in Pango source code named
examples/pangoft2topgm that does exactly what you are looking

> Cheers,
> Daniel Werner


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