Re: Pango Use

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

 



Ooops. You are quite right. How did I miss that... I guess I described
how gdk_draw_layout() is implemented.

Dov

On Tue, Apr 20, 2004 at 05:10:32PM +0200, Sven Neumann wrote:
> Hi,
> 
> Dov Grobgeld <dov@xxxxxxxxxxxxxxxxxxxxx> writes:
> 
> > Have a look at pangoft2topgm in the pango/examples directory. It shows
> > you how to construct a pango layout and then convert it to a gray level
> > image. You may then connect your code at this point and turn this image
> > into a mask that you may write to the screen using normal gdk-functions.
> > Note that in order to support the anti aliasing that freetype2 creates,
> > you will have to read from the screen the pixel buffer you want to 
> > paint in, draw using the image data returned from pango as an alpha
> > channel, and then paint the resulting back to the screen.
> 
> There are certainly easier ways to draw a PangoLayout to the screen.
> Have a look at gdk_draw_layout().
> 
> 
> Sven
_______________________________________________

gtk-list@xxxxxxxxx
http://mail.gnome.org/mailman/listinfo/gtk-list

[Index of Archives]     [Touch Screen Library]     [GIMP Users]     [Gnome]     [KDE]     [Yosemite News]     [Steve's Art]

  Powered by Linux