Re: Gnome::Print
- From: Paolo Molaro <lupus ximian com>
- To: gtk-perl-list gnome org
- Subject: Re: Gnome::Print
- Date: Thu, 25 Jan 2001 19:42:36 +0100
On 01/25/01 Jens Luedicke wrote:
It seems that Gnome::Print doesn't accept
a newline when using something like ...
my $print_master = new Gnome::PrintMaster;
my $context = $print_master->get_context;
$context->beginpage("Print");
$context->stroke;
A stroke does nothing here.
$context->moveto(15, 800);
$context->show("From: $from\n");
Think of it as if you're writing postscript: it doesn't handle
the layout for you in the same way that $gdkpixmap->draw_text()
doesn't handle the newline or the TAB character.
So, you should drop the newline, replace the TABs with the proper
amount of spaces and moveto() to different positions for
different lines.
The gomeprint library actually has the support for laying out
multiline text (handling justification as well as other properties)
but the output is supported only in the old PS driver.
Anyway, I'm going to commit that code now, but don't blame me
if it doesn't work! :-)
lupus
--
-----------------------------------------------------------------
lupus debian org debian/rules
lupus ximian com Monkeys do it better
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]