Pango to GdkPixbuf

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

 



Hi.

What is the best way to render a Pango layout to a GdkPixbuf?

I have tried using cairo_image_surface_create_for_data and
pango_cairo_show_layout: it works, but it requires a full copy of the image,
from the Cairo surface to the pixbuf, since the pixel format is not the
same. Is there a better way.

While I am here: is it possible to ask Pango to draw the outline of the
glyphs in a different color, to make them visible aither on a dark
background or on a light one?

Regards,

-- 
  Nicolas George

Attachment: signature.asc
Description: Digital signature

_______________________________________________

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