Font sample files: TrueType, OpenType, WOFF2, WOFF and PostScript

Download desktop and web font fixtures (.ttf, .otf, .woff2, .woff, .cff, .pfb, .ps, .sfd) to test @font-face CSS delivery, OpenType Sanitizer validation, PDF font subsetting, and FreeType/HarfBuzz rendering pipelines.

Font formats compared

Modern applications handle two distinct generations of font containers. Desktop publishing, operating-system font managers, and PDF generators consume uncompressed sfnt outline containers—TrueType (.ttf) with quadratic Bézier curves in a glyf table and OpenType (.otf) with cubic Bézier charstrings in a CFF table. Web browsers, by contrast, prioritize network transfer efficiency and consume WOFF2 (.woff2), which transforms the glyf and loca tables before compressing the entire font as a single Brotli stream.

FormatMIME typeSignature bytesPrimary engineering use caseReference & Download
TTF (TrueType)font/ttf00 01 00 00Desktop OS installation, PDF/DOCX embedding, FreeType/Canvas renderingTTF samples
WOFF2 (Web Font 2.0)font/woff277 4F 46 32 ('wOF2')Modern CSS @font-face delivery with Brotli compressionWOFF2 samples
OTF (OpenType CFF)font/otf4F 54 54 4F ('OTTO')PostScript Type 2 cubic Bézier desktop typography and print workflowsDownload .otf
WOFF 1.0font/woff77 4F 46 46 ('wOFF')Zlib-compressed sfnt web font container for legacy browser testingDownload .woff
CFF (Compact Font)font/cff01 00 04Raw Adobe Type 2 charstring font table embedded inside PDFs and OTFsDownload .cff
PFB (Printer Font Binary)application/x-font-type180 01Legacy Adobe Type 1 binary printer font with 0x8001 segment markersDownload .pfb
PS (PostScript)application/postscript25 21 50 53 ('%!PS')Page description language and Type 1/3 font dictionary testingDownload .ps
SFD (Spline Font DB)application/vnd.font-fontforge-sfdSplineFontDB:FontForge plain-text spline source database for CI font build scriptsDownload .sfd
DFONT (Mac Data-Fork)application/x-dfont00 00 01 00Legacy Mac OS X resource-map suitcase (documented as unavailable)View spec

What to verify when testing font uploaders and CDNs

Read our detailed engineering walkthrough in Font formats compared: WOFF2, WOFF, TTF, OTF and PostScript.

Frequently asked questions

Which font format should I use for testing modern web applications?
Start with WOFF2 (/formats/woff2/) for CSS @font-face and CDN caching tests, and use TTF (/formats/ttf/) or OTF when testing server-side image rendering (Pillow/Cairo) or PDF generation.
Do these sample fonts carry restrictive foundry licences?
No. All sample fonts on SampleTestFiles are built programmatically from basic geometric outlines using fontTools and are dedicated to the public domain (CC0).

Engineering test checklist for font sample files: truetype, opentype, woff2, woff and postscript

When designing automated integration suites for fonts pipelines, QA engineers must validate three distinct layers: binary container framing, metadata extraction accuracy, and resource-bounded parsing under concurrent load.

Verification layerTarget assertion for fontsRecommended test fixture or tool
1. Signature & MIME checkConfirm backend inspects leading magic bytes rather than trusting the client Content-Type header for fonts uploadsMagic-Byte File Inspector & Spoofed-Extension Fixtures
2. Boundary byte sizesTest minimum valid header size, 1 MB default proxy limit, 10 MB application ceiling, and 50 MB+ streaming transfersSize Buckets (1 KB–1 GB) & In-Browser Generator
3. Corrupt payload handlingVerify that truncated streams or malformed headers in fonts return HTTP 400/422 instead of crashing the workerBroken-File QA Suite & errors-400.json
4. Checksum reproducibilityAssert that round-trip storage in cloud object storage preserves the exact byte length and SHA-256 digestSHA-256 Checksum Directory

Common failure points in fonts ingestion workflows