Skip to content

DocAmz/advanced-font-manager

Repository files navigation

advanced-font-manager (WIP)

A TypeScript library for managing web font loading with support for multiple sources, validation, and error handling. Initially developed to solve canvas rendering issues with custom fonts in React applications, this library provides a simple API for loading fonts from URLs, files, or buffer data. It also includes built-in validation and error handling, event-driven architecture, and font face lifecycle management. Environment-agnostic and easy to integrate with any web application. (resolver is an experimental feature, use with caution and report any issues)

Based on the FontFace API and FontFaceSet API. Uses opentype.js for parsing font files.

Installation

npm install advanced-font-manager

Features

  • Load fonts from URLs, files, or buffer data
  • Built-in validation and error handling
  • Event-driven architecture
  • TypeScript support
  • Configurable debug levels
  • Font face lifecycle management

Documentation

see API documentation demo: comming soon

License

MIT

Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

About

A TypeScript library for managing web font loading with support for multiple sources, validation, and error handling.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published