Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Is there a way to extract fonts from PDF files?

I know that usually embedded fonts in PDF files are only subsets of the fonts. Anyway, is there a way to do this?

share|improve this question

migrated from stackoverflow.com Nov 26 '09 at 21:09

This question came from our site for professional and enthusiast programmers.

2 Answers 2

Download FontForge for Windows

http://www.geocities.jp/meir000/fontforge/

Or from the official FontForge location:

www.fontforge.org

Once FontForge is downloaded, start it

On the “Open Font” screen, go down to where it says “Filter” and change it to “Extract from PDF”. Select your PDF and a “Pick a font” window will open. Select the font you want to extract and click OK.

A window with a display of the font will show up. It’s not quite ready to turn into a TTF yet. Here’s how to prepare it:

Go to the Encoding menu and select “Compact”. This will cause FontForge to remove all characters that are not defined in the embedded font. Beware though, sometimes when a font is embedded into a PDF it will only contain characters used. So, if the PDF file that you are trying to extract from does not contain the letter “P”, then that letter will not show up in FontForge. Check to make sure all the characters you need are displayed and then head over to the Element menu.

Click on Font Info. You can update the Fontname, Family Name, and most importantly, “Name for Humans”. This field is what the font will display as in your editing program. The font name is usually a little garbled when you extract it, so just make it something readable. If there is a copyright notice displayed at the bottom, you should probably stop what you are doing since that usually means the font should be purchased.

If there’s no copyright, click on “OK”. Then go to File > Generate Fonts.

Select the type of font you want to save as (Usually TrueType is best), and click on Save. You may encounter some messages about Non-standard Em size and Bad Private Dictionary errors. Just click on Save and you should be OK.

Then, find your font file and open it up to make sure that it displays properly.

If it does, then all is well. Close FontForge and enjoy your properly displayed font.

share|improve this answer

Though bear in mind: Some documents with custom fonts are made as PDFs just for the purpose that those fonts should not be available to everybody.

Meaning they are copyrighted to their respective owner. Which in turn means if you plan to use said copyrighted font you can get in a lot of trouble.

Yes, not every font is free. There are fonts that cost hundreds of buck too.

share|improve this answer

protected by slhck Aug 9 '12 at 21:40

Thank you for your interest in this question. Because it has attracted low-quality answers, posting an answer now requires 10 reputation on this site.

Would you like to answer one of these unanswered questions instead?