|Subject:||corrupted font object|
|Date:||Wed, 5 Jul 2017 20:50:36 -0400|
|From:||Phil M Perry <firstname.lastname@example.org>|
I'm running the old examples/021_synfonts against PDF::API2 2.032 (just released), on Win7. The first font (Times-Roman) reports an error on PDF::API2::Basic::PDF::File line 933 ( $objind->is_obj($self) ) that the method can't be called. I traced this down to a newly-added "weaken" statement at line 870 in sub out_obj(), which apparently is causing a corefont object to be empty (at least, for Times-Roman). Commenting out that line lets everything run, but I'm not sure if that's safe or has undesirable interactions with other things.
By the way, to run 021_synfonts all the way through, PDF::API2::Resource::Font::CoreFont:: bankgothic needs a fix: change sub fontdata to sub data .
I was working on a utility for corefonts when the weaken
changes came out, and encountered the same problem (with
Times-Roman, but not Helvetica or Helvetica-Bold), so I suspect
it's not unique to 021_synfonts. It may be a flaw in the
Times-Roman font or its supporting files.