Skip to content

Latest commit

 

History

History
38 lines (23 loc) · 1.46 KB

File metadata and controls

38 lines (23 loc) · 1.46 KB

KeyFont

KeyFont is an open-source part of the KeyPDF engine available at keypdf.net, a browser-based font inspection and conversion toolkit. It supports TrueType, OpenType/CFF, WOFF, WOFF2, Type 1, and SVG font workflows. Font processing happens locally in the browser.

Run locally

The HTML pages load the readable files in src/ directly, so any static HTTP server can serve the project immediately wihtout any setup.

npx serve .

or via python

python -m http.server 

Source layout

  • src/ contains the application, format parsers, conversion code, UI, and browser-worker source.
  • src/vendor/ contains readable third-party browser code required for WOFF2 made by https://github.com/kekee000/fonteditor-core
  • index.html is the font viewer, editor, and single-font utility.
  • converter.html converts files, ZIP archives, or folders to a selected target format.

Third-party components

  • src/vendor/fonteditor-woff2.js provides WOFF2 encoding and decoding through fonteditor-core and its bundled WASM codec.
  • src/brotli.js provides Brotli decompression support.
  • src/fflate.js provides ZIP handling and WOFF zlib compression support.

KeyFont's project code is maintained in this repository. The third-party components above remain under their respective licenses.

License

KeyFont's project code is available under the MIT License. Third-party components remain under their respective licenses.