Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
20 commits
Select commit Hold shift + click to select a range
4896d67
fix: rename logErrors() -> logWarnings() and other relevant names to …
Nov 17, 2025
e1b48e4
fix: 未実装の GSUB lookupType についてエラーを出す際に、未対応の場合と不正な場合とを区別するように
Nov 17, 2025
e3ead97
fix: CMAP format 2 に対して Unknown ではなく Unsupported とのエラーを出すよう修正
Nov 17, 2025
21aefd1
fix: CMAP format 8 に対するエラーメッセージを修正
Nov 17, 2025
4006bf6
chore: add JSDoc @abstract tags
Nov 17, 2025
4f77494
chore: remove unused imports
Nov 17, 2025
f7d5de2
fix: throw dedicated errors for unsupported and unexpected cmap forma…
Nov 17, 2025
2596dfb
fix: 不正な GPOS lookupType に対するエラーメッセージを Unsupported -> Unknown に修正
Nov 17, 2025
34d4be3
fix: エラーメッセージ微修正
Nov 18, 2025
4264176
chore: remove unused import
Nov 18, 2025
e57afcd
chore: add comments
Nov 18, 2025
1cc06a3
fix: エラーメッセージ微修正
Nov 18, 2025
223708f
build: tsconfig関連を整理
Nov 18, 2025
11d9c8b
chore: FontkitErrorクラスおよび各種サブクラスを追加
Nov 18, 2025
44aa00d
chore: minor fix
Nov 18, 2025
9993f4b
test: npm install tsx
Nov 18, 2025
2250228
fix!: Replace generic `Error`s with new specific `FontkitError` subcl…
Nov 18, 2025
890adc1
test: 非同期エラーのテストが実装ミスで常にpassしていたのを修正
Nov 18, 2025
337f0f1
docs: update changelog
Nov 18, 2025
6903fae
docs: update AGENTS.md
Nov 18, 2025
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
4 changes: 4 additions & 0 deletions AGENTS.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
- Better Unicode variation selector (UVS) handling
- Richer shaping controls
- Vertical metrics accuracy
- Better error reporting
- Predictable type definitions for consumers

## Repository Orientation
Expand All @@ -18,6 +19,9 @@

## Toolchain & Commands
- Use Node 20+ and npm (repo ships `package-lock.json`). Install with `npm install`.
- Two TypeScript configs ship with the repo:
- `tsconfig.json` configures editor tooling for the codebase. It enables `allowJs`, `strictNullChecks`, and decorators, but keeps `checkJs` disabled so files opt in via `// @ts-check`.
- `tsconfig-types.json` extends the base config and only emits declarations for `src/index.ts` and `src/node.ts` when running `npm run build:types`.
- Fast feedback loop:
- `npm run build:js` → Parcel build into `dist/`.
- `npm run build:types` → `tsc --project tsconfig-types.json` (follows `src/index.ts` & `src/node.ts`, pulls in JS via `allowJs`).
Expand Down
15 changes: 14 additions & 1 deletion MODIFICATIONS.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,20 +2,33 @@

## [Unreleased]

### Feature/Dependency Removals

- 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`).
- Remove the dependencies below by replacing them with new internal helpers (no API changes):
- `clone` (used by `TTFSubset`)
- `fast-deep-equal` (used by `CFFDict`)

### Error Improvements

- Replace generic `Error`s with new specific `FontkitError` subclasses
- Fix some error messages
- Rename table decode logging helpers from `logErrors`/`isLoggingErrors` to `logWarnings`/`isLoggingWarnings` and downgrade emitted messages to warnings

### Other Changes

- 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


## [2.0.4-mod.2025.1]

- Fix glyph mapping using the cmap format 14 subtable, improving support for UVS in methods like `TTFFont#glyphsForString`
Expand Down
7 changes: 0 additions & 7 deletions jsconfig.json

This file was deleted.

Loading