poka.sh

Docs

AFM

Generated by scripts/gen-format-pages.py from docs/data/format-metadata/, FILE_FORMATS.csv and docs/formats-master.csv. Do not edit by hand: change the source, then run the script.

Adobe Font Metrics Preview.

At a glance

Purpose An Adobe Font Metrics file: plain-text metrics for a PostScript Type 1 font (names, bounding box, character widths, kerning).
Extensions .afm
Poka parser poka-afm
Viewer poka-tree-viewer
Depth tier Parser with a shared viewer (see Depth tiers)
Breadth tier B4 Summary (see Breadth tiers)

How much Poka reads

B4 Summary. The container and metadata are read and summarised (counts, properties, structure), but the main content is not rendered.

Confidence: medium (the reviewer read the code). Basis: Reviewed 2026-10-26: read parsers/poka-afm/src/main.rs (377 lines) and plugin.json. No unit tests or tests/samples.rs; the corpus has testAFM.afm, read by no test. Covers .afm. The tree shows the font identity (names, weight, version, notice, encoding, character set), the vertical and stem metrics and bounding box, the glyph count with a sample of glyph names, and the kerning-pair count with a sample of pairs. Judgement: B4: the metrics are summarised, but per-glyph metrics and kerning are only sampled.

What Poka does not read

  • Per-glyph widths and bounding boxes are not listed; only a sample of glyph names is shown
  • Kerning pairs are sampled, not listed in full
  • Track kerning, ligatures and composite characters are not shown
  • The font itself is not drawn (an AFM has no outlines)

Libraries

Libraries Poka uses or has assessed for this format, with the status, licence and language the registry records.

  • afm (afm-rs) (candidate; MIT OR Apache-2.0; Rust; https://github.com/trizinix/afm-rs) — Parses AFM files; repo shows MIT and Apache-2.0 licence files. Old (2018 releases) and poorly documented.

Sources

  • parsers/poka-afm/src/main.rs
  • parsers/poka-afm/plugin.json