Re: Highlevel printing API - proposal



This looks great, but I don't see anything in the print context relating to the use of "themed" rendering.

Should it be somewhere other than the print context?

Something like this:

gboolean egg_print_context_get_override_document_colors ()
GdkColor egg_print_context_get_text_foreground ()
GdkColor egg_print_context_get_text_background ()
GdkColor egg_print_content_get_line_art_foreground ()

(Not sure about the data types for the color stuff)

Perhaps instead of text_foreground etc. it should be "...get_paper_color()" and
"get_ink_color()".

Bill


...


Here is a new version:
http://people.redhat.com/alexl/print/libeggprint-0.0.1.tar.gz

Changes in this include:
* better handling of units
* some renaming
* changes to the signal prototypes to make them more sane.
 They now all get passed a PrintContext object that you can get all
 the info you need to render from.
* Helper functions for integration with pango that makes it easy to
 get correct text drawing.

Check out the example code output:
http://people.redhat.com/alexl/print/test2.pdf

It prints itself!






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