Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.postscript > #2386

Re: Perl PostScript::Simple problem (font selection?)

From Carlos <angus@quovadis.com.ar>
Newsgroups comp.lang.postscript
Subject Re: Perl PostScript::Simple problem (font selection?)
Date 2015-11-24 07:15 +0100
Organization A noiseless patient Spider
Message-ID <20151124071536.1bf6b89f@samara.DOMA> (permalink)
References <32ff5f8b-76f5-4ce6-a05c-7e3613c2d2df@googlegroups.com>

Show all headers | View raw


[N4TY <n4ty@me.com>, 2015-11-23 21:17]
> I have an existing working Perl script using Postscript::Simple-0.07
> on a Mac 10.9, Perl 5.12. Having problems with a new Macbook Pro, OS
> X 10.10 , Perl 5.18, Postscript::Simple-0.09.
> 
> My script is failing on simple things like "setfont" and "setcolour". 
> A simple failing program and errors is below.  
> Is this a font selection problem?  Thoughts on how to proceed?
> 
> Thanks!  
> - Tyler
> 
> 
> #!/usr/bin/perl
> 
> use strict;
> use warnings;
> use PostScript::Simple;
> 
> my $p = new PostScript::Simple(papersize => "Letter", eps => 0, units
> => "cm");
> 
> # ANY OF THESE CAUSE ERRORS (see below):
> $p->setcolour("black");
> $p->setfont("Times-Bold", 9);
> $p->setfont("Times-Roman", 9);
> 
> exit;
> 
> 
> 
> Errors posted (1st line always the same):
> internal page error at /Library/Perl/5.18/PostScript/Simple.pm line
> 2074.
> PostScript::Simple::_addtopage('PostScript::Simple=HASH(0x7fe0c202c1d0)',
> '/Times-Roman findfont 9 scalefont setfont\x{a}') called
> at /Library/Perl/5.18/PostScript/Simple.pm line 1667
> PostScript::Simple::setfont('PostScript::Simple=HASH(0x7fe0c202c1d0)',
> 'Times-Roman', 9) called at ps_test.pl line 14

I think you have to do

  $p->newpage;

before anything else.

HTH
-- 


Back to comp.lang.postscript | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

Perl PostScript::Simple problem (font selection?) N4TY <n4ty@me.com> - 2015-11-23 21:17 -0800
  Re: Perl PostScript::Simple problem (font selection?) Carlos <angus@quovadis.com.ar> - 2015-11-24 07:15 +0100
  Re: Perl PostScript::Simple problem (font selection?) tlvp <mPiOsUcB.EtLlLvEp@att.net> - 2015-11-24 01:47 -0500

csiph-web