Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions MODIFICATIONS.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,14 @@
# Modifications

## [Unreleased]

- Remove WOFF format support
- Also removing the `tiny-inflate` dependency (the indirect dependency may remain)
- Remove WOFF2 format support
- Also removing the `brotli` dependency
- Remove DFont format support
- Simplify the published TypeScript types by inlining the concrete format exports (`TTFFont`/`TrueTypeCollection`) in place of the old aliases (`Font`/`FontCollection`).

## [2.0.4-mod.2025.2]

- Improve performance of `CmapProcessor#lookupNonDefaultUVS` by caching variation selector records from `cmap` format 14 subtable
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ Fontkit is an advanced font engine for Node and the browser, used by [PDFKit](ht

## Features

* Supports TrueType (.ttf), OpenType (.otf), WOFF, WOFF2, TrueType Collection (.ttc), and Datafork TrueType (.dfont) font files
* Supports TrueType (.ttf), OpenType (.otf), and TrueType Collection (.ttc) font files (WOFF/WOFF2/DFont inputs have been removed)
* Supports mapping characters to glyphs, including support for ligatures and other advanced substitutions (see below)
* Supports reading glyph metrics and laying out glyphs, including support for kerning and other advanced layout features (see below)
* Advanced OpenType features including glyph substitution (GSUB) and positioning (GPOS)
Expand Down
14 changes: 2 additions & 12 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 0 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -83,12 +83,10 @@
},
"dependencies": {
"@swc/helpers": "^0.5.12",
"brotli": "^1.3.2",
"clone": "^2.1.2",
"dfa": "^1.2.0",
"fast-deep-equal": "^3.1.3",
"restructure": "^3.0.0",
"tiny-inflate": "^1.0.3",
"unicode-properties": "^1.4.0",
"unicode-trie": "^2.0.0"
},
Expand Down
120 changes: 0 additions & 120 deletions src/DFont.js

This file was deleted.

2 changes: 1 addition & 1 deletion src/TTFFont.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ import { asciiDecoder } from './utils';
*/
export default class TTFFont {
/**
* @type {'TTF' | 'WOFF' | 'WOFF2'}
* @type {'TTF'}
*/
type = 'TTF';

Expand Down
Loading