Solved

Need Wingdings.afm (postscript font)

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

Microsoft Certification Exam 74-409

Veeam® is happy to provide the Microsoft community with a study guide prepared by MVP and MCT, Orin Thomas. This guide will take you through each of the exam objectives, helping you to prepare for and pass the examination.

Question has a verified solution.

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

Microsoft Office Picture Manager was included in Office 2003, 2007, and 2010, but not in Office 2013. Users had hopes that it would be in Office 2016/Office 365, but it is not. Fortunately, the same zero-cost technique that works to install it with …
PaperPort has a feature called the "Send To Bar". It provides a convenient, drag-and-drop interface for using other installed software, such as Microsoft Office. However, this article shows that the latest Office 2016 apps (installed with an Office …
The viewer will learn how to look for a specific file type in a local or remote server directory using PHP.
The viewer will learn how to create a basic form using some HTML5 and PHP for later processing. Set up your basic HTML file. Open your form tag and set the method and action attributes.: (CODE) Set up your first few inputs one for the name and …

770 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