Re: printing GtkTextView contents

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

 



Chris Vine wrote:
Is your GtkTextView display actually in a layout and page format
suitable for printing, including correct pagination?

I would normally just get the text from the text buffer and then print
that.  (If you want to see my classes for printing plain text, which
will automatically format and paginate the text on a pango layout and
then print the text using GtkPrintOperation objects, I can point you to
them but they are written using C++, albeit using plain GTK+ without
language wrappers.)

Chris

I need the formating information applied to the text too.
And since the TextView stores this all in a TextLayout
internaly for displaying, i thought i could use the
TextDisplays draw function(with which a TextView draws itself)
to draw the layout in a pango-layout or a cairo-context.

It seems like there is generally no good solution for retrieving
formating information out of a TextView.

Emanuel

_______________________________________________
gtk-list mailing list
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