Skip Menu |

This queue is for tickets about the Win32-Printer CPAN distribution.

Report information
The Basics
Id: 6587
Status: resolved
Priority: 0/
Queue: Win32-Printer

People
Owner: Nobody in particular
Requestors: geraldg [...] clemson.edu
Cc:
AdminCc:

Bug Information
Severity: Unimportant
Broken in:
  • 0.6.1
  • 0.6.2
  • 0.6.3
  • 0.6.3.1
  • 0.6.4
  • 0.6.5
  • 0.6.6
  • 0.6.6.1
  • 0.7.0
  • 0.7.1
  • 0.8.0
Fixed in: 0.8.1



Subject: font specification
Win32-Printer-0.8.0 I have successfully incorporated this printer dialog with my system using perl 5.8. The only problem I have with this dialog is that I have been unable to change the font. The following snippet is almost identical to your document example: ############################################################################ sub printfiles #05/03/02 1:10:PM ############################################################################ { $args = @_; # number of files to print use Win32::Printer; my $dc = new Win32::Printer( papersize => LEGAL, orientation => LANDSCAPE, dialog=> NOSELECTION, description => 'Mevs Balancing', unit => 'mm' ); my $font = $dc->Font('Courier', 8); $dc->Font($font); $dc->Color(0, 0, 0); #################################################################### foreach (@_) { $input = $_; # name of file to be printed open (INPUT, "< $input" ) || die "Can't open $input file"; $x = 10; $y = 10; while (<INPUT>) { $output = $_; $dc->Write($output, $x, $y); $y = $y + 5; } $dc->Page(); } $dc->Close(); } 1; Instead of font "courier", get arial. Anyone else having this problem?
Date: Fri, 11 Jun 2004 10:28:20 +0300
From: Edgars Binans <edgars.binans [...] lep.lv>
To: bug-Win32-Printer [...] rt.cpan.org
Subject: Re: [cpan #6587] font specification
RT-Send-Cc:
Hi! Actually Windows does not have a default TrueType "Courier" font so use "Courier New" instead! Bitmap fonts ("Courier", "System", "Terminal", e.t.c.) somehow does not confirm to requested font options. In next release this will be rwieved and behavior will be defined (bitmap fonts will be enabled or disabled for good). See documentation and change log of the next release/update! Minor update (Win32::Printer 0.8.1) will be released someday this month (June 2004). Best regards, Edgars Binans Guest via RT wrote: Show quoted text
>This message about Win32-Printer was sent to you by guest <> via rt.cpan.org > >Full context and any attached attachments can be found at: ><URL: https://rt.cpan.org/Ticket/Display.html?id=6587 > > >Win32-Printer-0.8.0 > >I have successfully incorporated this printer dialog with my system using perl 5.8. The only problem I have with this dialog is that I have been unable to change the font. The following snippet is almost identical to your document example: > >############################################################################ >sub printfiles #05/03/02 1:10:PM >############################################################################ > { > $args = @_; # number of files to print > > use Win32::Printer; > > my $dc = new Win32::Printer( > papersize => LEGAL, orientation => LANDSCAPE, > dialog=> NOSELECTION, > description => 'Mevs Balancing', > unit => 'mm' > ); > > my $font = $dc->Font('Courier', 8); > $dc->Font($font); > $dc->Color(0, 0, 0); > #################################################################### > foreach (@_) { > > $input = $_; # name of file to be printed > > open (INPUT, "< $input" ) || die "Can't open $input file"; > $x = 10; > $y = 10; > > while (<INPUT>) > { > $output = $_; > $dc->Write($output, $x, $y); > $y = $y + 5; > } > $dc->Page(); > } > $dc->Close(); > } > 1; > >Instead of font "courier", get arial. Anyone else having this problem? > > >