Beefy Boxes and Bandwidth Generously Provided by pair Networks Joe
Welcome to the Monastery
 
PerlMonks  

Re^3: PDF::API2 and the Elusive Courier Font

by kschwab (Priest)
on Nov 10, 2013 at 14:22 UTC ( #1061906=note: print w/ replies, xml ) Need Help??


in reply to Re^2: PDF::API2 and the Elusive Courier Font
in thread [SOLVED] PDF::API2 and the Elusive Courier Font

I checked the source, and the $pdf->corefont() method pulls from 14 built-in fonts in the module itself...where their data is encoded in .pm files, here:

/the_module_install_dir/lib/PDF/API2/Resource/Font/

So, it's not looking at system installed fonts at all.Your issue is within the module itself.

Since your code is working for others, I would guess you've got a borked installation of the module. You could find try the ttffont() or psfont() method instead, assuming you have ttf or pfm files for the desired fonts around. The convert utility shows the location of these. Or perhaps try reinstalling the module?


Comment on Re^3: PDF::API2 and the Elusive Courier Font
Re^4: PDF::API2 and the Elusive Courier Font
by rsmeineke (Initiate) on Nov 11, 2013 at 09:35 UTC

    I thought that is what I had gleaned from the source. This is just weird.

    I sudo apt-get purged then sudo apt-get installed which installed the 2.019 version of the package. Still no Courier. Purged again then installed from the source which is version 2.020. Still no Courier.

    I even went so far as to grab a year 2007 version of the Courier.pm file from the old source on CPAN .... no Courier! All my file and directory permissions look reachable. It has got to be something funky about this Linux Mint 15 install.

    I really should quit obsessing about this but I hate not being able to solve a good mystery!

    Thanks so much for your time, Robert M.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1061906]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others having an uproarious good time at the Monastery: (10)
As of 2014-04-23 11:05 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    April first is:







    Results (541 votes), past polls