WARNING: THIS SITE IS A MIRROR OF GITHUB.COM / IT CANNOT LOGIN OR REGISTER ACCOUNTS / THE CONTENTS ARE PROVIDED AS-IS / THIS SITE ASSUMES NO RESPONSIBILITY FOR ANY DISPLAYED CONTENT OR LINKS / IF YOU FOUND SOMETHING MAY NOT GOOD FOR EVERYONE, CONTACT ADMIN AT ilovescratch@foxmail.com
Skip to content

v2.0.0

Latest

Choose a tag to compare

@devongovett devongovett released this 18 Jun 23:04
· 12 commits to master since this release

This release modernizes fontkit to drop Node-specific dependencies so it can more easily be used in the browser.

  • Usages of Buffer have been replaced with Uint8Array/TextEncoder/TextDecoder
  • Encoding subsets is now no longer streaming. subset.encodeStream() has been replaced with subset.encode() which returns a Uint8Array.
  • Optional dependency on iconv-lite has been dropped in favor of TextDecoder.
  • There is now a separate browser build, which excludes the fs dependencies. This means there is no open or openSync method in browser environments.
  • open now returns a Promise rather than accepting a callback.