Type 1 PFB and PFM Font Converter
Drop a .pfb or .pfa font, with its .pfm metrics file if you have one, check the names and glyphs, try sample text drawn from the outlines and download an OpenType OTF with CFF outlines or a TrueType TTF.
Runs in your browser. Your files never leave your device. See how to check
…
How to do it
- 1Open
Drop the .pfb or .pfa with its .pfm.
- 2Check
Read warnings, names and glyph counts.
- 3Edit
Adjust family, full and PostScript names.
- 4Preview
Type sample text and scan the glyph grid.
- 5Convert
Download the OTF or TTF.
About this tool
The Type 1 PFB and PFM Font Converter turns PostScript Type 1 fonts into OpenType files that current systems and design programs still install. Type 1 support has been removed from recent versions of several major applications and operating systems, which leaves many print shops and designers with folders of old .pfb and .pfm files they can no longer use. A Type 1 font has a clear text part and an encrypted part. The tool reads binary .pfb files, made of marked segments, and text .pfa files, where the encrypted part is written as hex after the eexec keyword. It decrypts the private part and each glyph program, then runs every charstring to recover the outlines: moves, lines and curves, subroutine calls up to ten deep, flex curves, hint replacement and seac accented letters, which are built from their base letter and accent and stored as plain outlines. Hints are read and dropped. The outlines are scaled from the FontMatrix to 1,000 units per em. Problems with single glyphs are listed as warnings, and a missing .notdef glyph is added. Glyph names are matched to Unicode with a built-in list covering ASCII, Latin-1, common punctuation and a few symbols, plus names written as uniXXXX or uXXXX. Glyphs whose names are not on the list stay in the font but get no Unicode code, so they cannot be typed. The Font information card shows the family name, full name, PostScript name and weight, which you can edit before converting, and lists the glyph count, how many have Unicode, the bounding box, italic angle, fixed pitch, version and notice. If you add the .pfm file, the converter reads the Windows face name, weight class, italic flag, ascent and kerning pairs. Kerning pairs are stored as Windows character codes, which are mapped through code page 1252 to Unicode and written as a kern table.
The outputs
Download OTF (CFF) writes an OpenType font with a CFF table of Type 2 charstrings, which keeps the cubic curves exactly. Download TTF writes a TrueType font with a glyf table, where each cubic curve is split into up to eight quadratic pieces, about one for every 120 font units of curve length. Both files have cmap, head, hhea, hmtx, maxp, name, OS/2 and post tables. The weight class comes from the PFM or from words in the weight name such as Light, Bold or Black, and the name table carries the family, style, full and PostScript names and the version. A weight other than Regular or Bold, such as Semibold, gets its own family name, for example TestSans Semibold, with the typographic family TestSans and subfamily Semibold in name IDs 16 and 17, so it installs beside the Regular face. The italic angle is written to the post table as an exact 16.16 value.
Previews
The Sample text card draws your text straight from the recovered outlines, with PFM kerning applied, and below it the same text set in the converted OTF as loaded by your browser, which shows that the file works. The glyph grid shows up to 240 glyphs with their names and Unicode codes, with a search box. Print specimen prints the sample line with the glyph count, family and weight.
The sample results
A small test font, TestSans-Regular, is a 1,504-byte PFB with six glyphs: .notdef, space, A, acute, Aacute and O. A is 600 units wide and maps to U+0041. Aacute is a seac composite of A and acute, maps to U+00C1, and has the accent moved by the offset in the seac call so it starts at 200, 650. The O is four curves. The OTF version is 1,120 bytes with a 304-byte CFF table, and the TTF version 1,252 bytes with a 368-byte glyf table, both with the whole-file checksum adjustment set.
Who this is for
Typographers, print shops and designers with old Type 1 libraries, and archivists who need to open documents set in fonts that no longer install.
Limits
Hints are not converted, so small sizes on screen can look softer than the original. Glyphs whose names are outside the built-in Unicode list, such as many Central European letters, are not mapped. Multiple master and CID-keyed fonts are not handled. The OS/2 embedding field is always written as 0, installable, because Type 1 fonts carry no such field, so it says nothing about what your licence allows. Check the font's licence before converting: many commercial Type 1 licences do not allow conversion or redistribution, and the converter cannot tell. This is not legal advice about font licences; ask the foundry if you are unsure.
Worked example
TestSans-Regular, 6 glyphs in a 1,504-byte PFB: A 600 units at U+0041, Aacute built by seac at U+00C1; OTF 1,120 bytes (CFF 304), TTF 1,252 bytes (glyf 368).
Quick facts
- Category: Math & Science
- Works in your browser, no sign-up, no upload.
- Your input stays on your device.
- Available in English.
- Content last reviewed:
- Official source: Adobe Type 1 Font Format; Adobe Technical Note 5176 (CFF) and 5177 (Type 2 charstrings); OpenType 1.9 specification
Frequently asked questions
Should I choose OTF or TTF?
OTF with CFF outlines keeps the original cubic curves exactly and is usually the better choice. TTF suits software that only accepts TrueType; its curves are converted to quadratic pieces.
Do I need the .pfm file?
No, but it helps. It adds the Windows face name, weight class, italic flag, ascent and kerning pairs. Without it, names and weight come from the font itself and there is no kerning.
Are hints kept?
No. Hints are read and dropped, so the converted font may look softer at small screen sizes. Printing at normal text sizes is rarely affected.
Why can some glyphs not be typed?
Their names are not on the built-in Unicode list, so they get no code in the cmap table. They are still in the font and visible in the glyph grid.
Am I allowed to convert my fonts?
That depends on the licence. Many commercial Type 1 licences forbid conversion or redistribution. Read your licence or ask the foundry before converting.
Is my font uploaded?
No. The font is read and converted in this browser, and the files are saved on your computer.
