Solved

Need Wingdings.afm (postscript font)

Posted on 2008-10-27
2
1,271 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

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
Link SQL table to Webpage 9 39
PC upgrade to Linux Mint 7 37
session dropped in IE 10 22
mysql left join sentence 7 22
This article shows how to convert a multi-page PDF file into multiple image files, with one image file created for each page of the PDF. It does this by utilizing an excellent, free software package called GraphicsMagick. The solution is amazingly s…
Password hashing is better than message digests or encryption, and you should be using it instead of message digests or encryption.  Find out why and how in this article, which supplements the original article on PHP Client Registration, Login, Logo…
In this sixth video of the Xpdf series, we discuss and demonstrate the PDFtoPNG utility, which converts a multi-page PDF file to separate color, grayscale, or monochrome PNG files, creating one PNG file for each page in the PDF. It does this via a c…
In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…

747 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

9 Experts available now in Live!

Get 1:1 Help Now