Re: Drawing text to local memory pixmap with Pango
- From: Behdad Esfahbod <behdad cs toronto edu>
- To: Daniel Werner <dwerner experimentalscene com>
- Cc: gtk-i18n-list gnome org
- Subject: Re: Drawing text to local memory pixmap with Pango
- Date: Sat, 7 May 2005 01:30:39 -0400 (EDT)
On Sat, 7 May 2005, Daniel Werner wrote:
> Hi, this is my first post to this list, hello :)
Welcome.
> 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
for.
> Cheers,
> Daniel Werner
> http://www.experimentalscene.com/
Cheers,
--behdad
http://behdad.org/
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]