Link to home
Start Free TrialLog in
Avatar of light-blue
light-blue

asked on

Need Wingdings.afm (postscript font)

Just curious if anyone has experience with installing wingdings.afm on linux (debian etch without a GUI)? I'm using R&OS PDF class (http://www.ros.co.nz/pdf/)  for PHP (which works great), but I need a checked and unchecked checkbox icon, which is available in that font set. I know I'm close to a solution, but I don't understand the font issues enough here. Documentation for R&OS states:

"You can now have extra fonts!. It is possible to add type 1 postscript fonts, or TrueType fonts.
Though note that for the postscript font you have to have both a .pfb file and a .afm file - but there are
free products out there which can convert a .pfa to a .pfb. Also to use a TrueType file you have to
have a corersponding .afm file as this is required to specify the character widths - luckily there is a
program which will generate one from a ttf file."
Avatar of light-blue
light-blue

ASKER

I just fixed this, so for anyone else seeing this problem...

It turns out that this was actually pretty easy! I opened the Fonts Control Panel (Windows XP), copied the wingding.ttf to the linux box (note that I wanted wingding2 though which didn't work as described below, so I downloaded one from http://www.webpagepublicity.com/free-fonts.html) and ran this

ttf2pt1 wingding2.ttf

That command created the .afm file I needed and R&OS PDF maker worked with this line:

$p->selectFont('./fonts/wingding2.afm');
ASKER CERTIFIED SOLUTION
Avatar of light-blue
light-blue

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial