npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@formepdf/fonts-standard

v0.25.0

Published

Embeddable, metric-compatible replacements for the standard 14 PDF fonts (Liberation Sans/Serif/Mono, OFL) — for PDF/UA and PDF/A output

Readme

@formepdf/fonts-standard

Embeddable, metric-compatible replacements for the 14 standard PDF fonts, for producing accessible (PDF/UA) and archival (PDF/A) documents with Forme.

PDF/UA and PDF/A both require every font to be embedded. The 14 standard PDF fonts (Helvetica, Times, Courier, …) are not embedded — viewers substitute them — so a document that relies on them cannot conform. This package provides the Liberation family (Sans/Serif/Mono), which is metric-compatible with Helvetica/Times/Courier by design: substituting it changes nothing about layout. Forme lays out on the standard font metrics and swaps only the embedded glyph program at write time, so pdfUa output is geometry-identical to the default.

Install

npm install @formepdf/fonts-standard

Usage

Register the fonts, then enable pdfUa — Forme maps the standard base-14 families to the embedded Liberation programs automatically.

import { Font } from '@formepdf/react';
import { standardFonts } from '@formepdf/fonts-standard';

for (const font of standardFonts()) Font.register(font);

// Now render with { pdfUa: true } — Helvetica/Times/Courier embed as
// Liberation Sans/Serif/Mono; layout is unchanged.

If pdfUa is set and a standard font is used but this package is not registered, Forme emits the document but warns by name with the remedy (install and register @formepdf/fonts-standard) — never silently.

Exports

  • standardFonts(): FontSpec[] — the 12 Liberation fonts (Sans/Serif/Mono × Regular/Bold/Italic/BoldItalic) as registrations with Uint8Array buffers. No file IO — works in Node, WASM, and the browser.
  • BASE14_ALIASES — base-14 family → Liberation family, the same mapping the engine uses. Symbol and ZapfDingbats have no metric-compatible substitute and are omitted.

PDF/A note

For PDF/UA-1, the Liberation programs are embedded with the standard fonts' AFM widths, which is fully conformant. For PDF/A-2b, ISO 19005's font-consistency clause requires declared widths to agree with the embedded program's advances; Liberation matches the AFM widths for the entire common glyph set, with a small enumerated set of rare accent/symbol glyphs (per proportional family) where Forme declares the program's actual advance instead. See the engine's PDF/A width carve-out.

License

The Liberation fonts are redistributed unmodified under the SIL Open Font License, Version 1.1 — see OFL.txt and AUTHORS.

Digitized data copyright © 2010 Google Corporation with Reserved Font Arimo, Tinos and Cousine. Copyright © 2012 Red Hat, Inc. with Reserved Font Name Liberation.

The package's own code is MIT-compatible; the distributed font binaries are OFL-1.1.