Migrate dompdf/php-font-lib to TypeScript

D Converted · version 1.0.2

dompdf/php-font-lib 1.0.2 is a PHP package released under the LGPL-2.1-or-later license and requires PHP ^7.1 || ^8.0. Pext migrates it to TypeScript; on Node.js, 1 of 4 PHPUnit tests pass (25.0%), with no failures and 3 errors. It has no tracked dependencies, and 1 tracked package depends on it.

A library to read, parse, export and make subsets of different types of font files.

ConvertsYes
Runs on Node.jsYes
Runs on BunNot yet measured
TypeScript typesNot emitted

PHPUnit results on Node.js

25.0% of 4 tests passing (1 passed, 0 failed, 3 errors, 0 skipped). Verified 2026-10-21.

Where tests fail

The test class with the most failing tests on Node.js:

Test classFailing tests
FontTest3

What “Converted” means

Converts cleanly to TypeScript. Test verification is pending or still climbing.

Requirements

PHP
^7.1 || ^8.0
Extensions
mbstring

As declared in the package's Composer metadata. Pext provides PHP extensions through its runtime modules.

Dependencies

No tracked dependencies.

Used by

More from dompdf

Upstream

Version
1.0.2
License
LGPL-2.1-or-later
Homepage
https://github.com/dompdf/php-font-lib

Migrating a codebase that uses dompdf/php-font-lib?

See how Pext migrates a real PHP application, its Composer dependencies and its test suite to TypeScript.