.AFM

AFM File

Adobe Font Metrics File
Ask a question
QUICK ANSWER

An AFM file is a plain-text Adobe Font Metrics file that stores character widths, bounding boxes, and kerning pairs for a Type 1 PostScript font. You do not open it directly -- PostScript applications, TeX/LaTeX, and prepress tools read it automatically. To inspect the contents, open it in any text editor.

Developer: Adobe Systems Incorporated Category: Font Files Open standard MIME: application/x-font-afm
OPENS ON Windows macOS Linux
Related: .WOFF · .TTF · .EOT · .MCF

On this page

19k+ extensions indexed
Last reviewed Aug 23, 2026

Not sure what your file is?

Drop any file into our identifier - we read just the first bytes to name the format.

Identify a file

What is the AFM file format?

The .afm file belongs to the font file category. The content of .afm files are font metrics created by Adobe. .afm files contain all the parameters defining the character widths, kerning pairs, and bounding boxes of individual glyphs, expressed in a plain-text format based on the PostScript typesetting system. The content of an .afm file includes a header section and a character metrics data section. This last section stores all measurements for every glyph in the font - width, bounding box, and optional ligature information - enabling layout applications to calculate glyph widths, kerning, and line spacing without needing to render the font itself.

.afm files accompany Type 1 PostScript fonts (.pfa / .pfb) and are identified by the keyword StartFontMetrics on their very first line, followed by the specification version number (for example StartFontMetrics 4.1). Adobe published the final AFM 4.1 specification in October 1998. On Windows, the binary equivalent is the .pfm (Printer Font Metrics) file.

With dedicated applications you can convert fonts from .afm files to other popular formats, as well as generate new .afm files based on various font standards. Many converters work online, so the user does not have to install any software - only upload the selected .afm file to a conversion website. Because .afm is plain ASCII text, it can also be opened and inspected in any text editor. OpenType fonts carry equivalent metrics internally, making standalone .afm files rare outside PostScript and legacy prepress workflows.

Security & safety

RISK: LOW

Plain ASCII text with no executable code. Zero known security risk.

Format details

in a nutshell
FULL NAMEAdobe Font Metrics Fileaka AFM file, Adobe font metrics
DEVELOPERAdobe Systems Incorporatedsince 1985 (with PostScript Type 1 fonts)
CATEGORYFont Files
MIME TYPEapplication/x-font-afm
TYPEplain text font metrics descriptor
STANDARDOpen · royalty-free
This extension is also used by…
  • ACFM - Adobe Composite Font Metrics - A variant of AFM for composite (multi-byte) fonts; uses same file structure but different section keywords.

Programs that open AFM files

Windows3 apps
FontForge Open-source File → Import → AFM to load metrics into a font project; can also generate AFM from any font.
Any text editor (Notepad, Notepad++) Open-source Open the .afm file in Notepad++ or VS Code to read metrics data in plain text.
Adobe Creative Cloud (apps) Paid AFM files are consumed automatically by InDesign, Illustrator, etc. when Type 1 fonts are installed. Users do not open AFM directly.
macOS2 apps
FontForge Open-source Import or generate AFM metrics for Type 1 font projects.
Any text editor (TextEdit/BBEdit) Freemium Open .afm as plain text - all content is ASCII.
Linux2 apps
FontForge Open-source Standard font editing tool on Linux; reads and writes AFM.
afmtopl (TeX Live) Open-source Converts AFM to TeX PL property list format: 'afmtopl font.afm font.pl'.

Technical details

deep spec
File encodingPlain ASCII text; ISO Latin-1 permitted for comments
MIME typeapplication/x-font-afm
Magic identifierFirst line always `StartFontMetrics <version>` (e.g. `StartFontMetrics 4.1`)
Final specification versionAFM 4.1, published by Adobe on October 7, 1998
Typical file size5 KB - 200 KB (larger for fonts with many kerning pairs)
Structure sectionsGlobalFontInfo header; CharMetrics (per-glyph width, bounding box, ligatures); KernPairs; TrackKern; Composites
Width unit1/1000 of the em (point size); e.g. `WX 722` means the glyph occupies 72.2% of the point size
Character metrics syntax`C <code> ; WX <width> ; N <name> ; B <llx lly urx ury> ;`
File terminatorLast line must be `EndFontMetrics`
Companion formats`.pfb` / `.pfa` (Type 1 outlines); `.pfm` (Windows binary metrics equivalent)
Key-value conventionAdobe-reserved keys begin with a capital letter; lowercase keys are user-defined
TeX utility`afmtopl` (TeX Live) converts `.afm` to TeX property-list `.pl` format
Superseded byOpenType (`.otf`) embeds equivalent metrics internally; standalone `.afm` files are now rare outside legacy PostScript workflows
Released1985 (with PostScript Type 1 fonts)
Latest versionAFM Specification Version 4.1 (October 7, 1998)
Open standardYes · royalty-free
Specificationadobe-type-tools.github.io

AFM conversions

Community Q&A

asked by users
Ask a quick question
Get help from people who work with AFM files. Be specific - include your system and software version.
No account needed · answers usually within a day

No questions yet - be the first to ask about AFM files.

Frequently asked questions

What is an AFM file?
An Adobe Font Metrics file - a plain text file that stores character widths, bounding boxes, and kerning pairs for a Type 1 PostScript font. Applications use it automatically; you do not open it directly.
Do I need to do anything with AFM files?
No - if you install a Type 1 font, its .afm file should be placed alongside the .pfb file. Adobe and TeX applications find it automatically.
Can I open an AFM file?
Yes - it is plain ASCII text. Open it in any text editor (Notepad, VS Code). The content is human-readable metric data.
What is the difference between AFM and PFM?
Both store Type 1 font metrics. AFM is the cross-platform Adobe text format; PFM is the Windows-specific binary equivalent. Modern applications prefer OpenType fonts which embed metrics internally.
Are AFM files still used?
Rarely in new workflows. They persist in TeX/LaTeX environments with Type 1 fonts, legacy prepress, and font development tools like FontForge. Modern fonts are OpenType (.otf/.ttf) which embed metrics internally.
I got an AFM file with a font download - what should I do?
Install the accompanying .pfb/.pfa font file normally. Place the .afm file in the same directory or in your system's font metrics path. Most modern apps ignore it unless explicitly using PostScript Type 1 workflows.

References

1Adobe Font Metrics File Format Specification v4.1 (PDF)adobe-type-tools.github.io
2fonttools afmLib documentationfonttools.readthedocs.io

Keep exploring

across the database

Top extensions this week

1.AQQAQQ Instant Messenger File
2.CRDOWNLOADChrome Partial Download File
3.PARTPartial Download File
4.MDMarkdown Document
5.JPGJPEG Image
6.BINCD/DVD Disc Image (BIN/CUE)
7.EXEWindows Executable (Portable Executable)
8.NOMEDIAAndroid No-Media Marker File
9.DATProgram Data File (generic)
10.RPMSGRestricted Permission Message

Related extensions

.WOFFWeb Open Font Format
.TTFTrueType Font
.EOTEmbedded OpenType Font
.MCFMathcad Font / Resource File
.CHRBorland BGI Stroke Font File
.OTFOpenType Font

Free file tools

An in-browser file identifier and image converter - everything runs on your device.

Open the toolbox

Browse file extensions A-Z