Re: Gnome::Print



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.
Yeah... I used your example code as the codebase
and so I kept everything. But I removed it 

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.
Great... This is exactly my idea that I wanted to circumwent ...
But I think that I understand now the basics of Gnome::Print.

Anyway, I'm going to commit that code now, but don't blame me
if it doesn't work! :-)
If I need a special/outdated debian packaged I won't even try it ;-)

-- 
with friendly regards....
        jens luedicke <jens irs-net com>
 
 PMC - Perl Mail Client
        http://www.irs-net.com/
        wget it: wget -m -nH ftp://ftp.irs-net.com/pmc 
 
 Bush jr: FOAD ... perversion of justice ...
 --
 If's Beste Freundin: Else




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