PFB to AFM Converter

Extract AFM metrics from PFB fonts — free and online

Drop files here. 1 GB maximum file size or Sign Up
to
Facebook Amazon Microsoft Tesla Nestle Walmart L'Oreal

Precise Metrics

Get accurate character widths, kerning pairs, and bounding boxes from your PFB font — essential data for professional typesetting engines.

Font to Metrics

Extract the AFM companion file that completes your PFB installation for LaTeX, TeX, and other layout systems that require explicit metric data.

Browser-Based Tool

No font software needed on your machine — generate AFM files from PFB fonts entirely through your web browser.

How to convert PFB to AFM

1

Select files from Computer, Google Drive, Dropbox, URL or by dragging it on the page.

2

Choose afm or any other format you need as a result (more than 200 formats supported)

3

Let the file convert and you can download your afm file right afterwards

About formats

PFB (Printer Font Binary) is the compact binary representation of Adobe's PostScript Type 1 font format, introduced alongside PFA in 1984. Where PFA stores the entire font program as hex-encoded ASCII text, PFB wraps the same data in a lightweight binary container that uses segment headers to mark regions as ASCII or binary. The encrypted glyph outline section (eexec) is stored as raw bytes rather than hex characters, cutting the file size roughly in half compared to PFA. Each segment begins with a marker byte and a 32-bit length field, making the format simple to parse while still significantly more compact. PFB became the dominant Type 1 distribution format on Windows and DOS platforms, used in combination with PFM (Printer Font Metrics) or AFM files that supply the character width and kerning data needed for text layout. One advantage is storage and transfer efficiency — the binary encoding means a typical text font occupies 30-50 KB rather than the 60-100 KB its PFA equivalent would require. The segmented structure also allows PostScript interpreters to stream font data efficiently, processing ASCII and binary portions with their respective handlers. Adobe Type Manager (ATM) on Windows relied on PFB files to render smooth Type 1 text on screen, a capability that transformed desktop publishing on the PC platform. While OpenType fonts have largely replaced Type 1 for new work, PFB files persist in established print workflows, archival font libraries, and systems that depend on PostScript output.
Developer: Adobe Systems
Initial release: 1984
AFM (Adobe Font Metrics) is a plain-text metadata file format developed by Adobe Systems as a companion to PostScript Type 1 font outlines. Introduced alongside the PostScript language in 1984, AFM files provide the glyph-level metrics that applications need for text layout — individual character widths, bounding boxes, kerning pair adjustments, ligature substitutions, and global font dimensions like ascender height and cap height. The file is structured as a series of human-readable keyword-value pairs, making it easy to inspect and parse with simple text processing tools. AFM data is essential for accurate typesetting: without it, a layout engine knows the shapes of the glyphs but not how much space to allocate for each character or how to tighten spacing between specific letter combinations. One advantage is format transparency — because AFM is plain ASCII text, metric data can be audited, compared, and version-controlled without specialized software. The separation of metrics from outlines is another architectural strength, allowing a single AFM file to serve multiple rendering environments (screen, print, PDF) without duplicating glyph data. The current specification, Version 4.1 published in 1998, extended the format with composite character definitions and writing direction support. While modern OpenType fonts bundle metrics internally, AFM remains relevant in PostScript workflows, PDF generation pipelines, and legacy publishing systems that depend on Type 1 fonts.
Developer: Adobe Systems
Initial release: 1984

Frequently Asked Questions

Why convert PFB to AFM?

AFM provides character widths, kerning tables, and bounding box data that typesetting applications need for precise text positioning alongside the PFB outlines.

How to open AFM?

AFM is a plain-text format readable in any text editor. It is also used directly by LaTeX, TeX, Adobe InDesign, and other professional typesetting systems.

What information does AFM contain?

AFM stores per-character metrics — widths, bounding boxes, kerning pairs, and composite character definitions — all in a human-readable text format.

Is AFM the same as PFM?

Both carry font metrics, but AFM follows Adobe standard and is cross-platform, while PFM is a Windows-specific binary format with similar data.

Can I generate AFM for multiple fonts?

Yes — upload several PFB files and extract AFM metrics for all of them simultaneously using batch processing.

PFB to AFM Quality Rating

4.8 (5 votes)
You need to convert and download at least 1 file to provide feedback!