Solved

Need Wingdings.afm (postscript font)

Posted on 2008-10-27
2
1,274 Views
Last Modified: 2013-12-13
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."
0
Comment
Question by:light-blue
  • 2
2 Comments
 
LVL 1

Author Comment

by:light-blue
ID: 22814829
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');
0
 
LVL 1

Accepted Solution

by:
light-blue earned 0 total points
ID: 22815046
Specifically,

$checked=chr(82);
$unchecked=chr(163);
$p->ezText($checked.$unchecked);
0

Featured Post

Efficient way to get backups off site to Azure

This user guide provides instructions on how to deploy and configure both a StoneFly Scale Out NAS Enterprise Cloud Drive virtual machine and Veeam Cloud Connect in the Microsoft Azure Cloud.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Linux : taking backup different mount points under the same directory 8 50
Animated .jpg? 13 61
WordPress TK Title 8 25
Split long text string into shorter chunks 7 23
The purpose of this article is to show how we can create Linux Mint virtual machine using Oracle Virtual Box. To install Linux Mint we have to download the ISO file from its website i.e. http://www.linuxmint.com. Once you open the link you will see …
Nothing in an HTTP request can be trusted, including HTTP headers and form data.  A form token is a tool that can be used to guard against request forgeries (CSRF).  This article shows an improved approach to form tokens, making it more difficult to…
Sometimes we receive PDF files that are in the wrong orientation. They may be sideways or even upside down. This most commonly happens with scanned or faxed documents. It is possible to rotate the view of these PDFs with the free Adobe Reader produc…
This video Micro Tutorial is the first in a two-part series that shows how to create and use custom scanning profiles in Nuance's PaperPort 14.5 (http://www.experts-exchange.com/articles/17490/). But the ability to create custom scanning profiles al…

867 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

20 Experts available now in Live!

Get 1:1 Help Now