Skip to content

lightning-js/vite-plugin-msdf-generator

Repository files navigation

Generate MSDF Font

Install

npm i -D https://github.com/lightning-js/vite-plugin-msdf-generator.git

Usage

Add viteMsdfGenerator plugin to vite.config.js / vite.config.ts.

// vite.config.js / vite.config.ts
import { viteMsdfGenerator } from 'vite-plugin-msdf';

export default defineConfig({
  plugins: [
    viteMsdfGenerator({
      fonts: [
        {
          src: 'fonts/NotoSans-Regular.ttf',
          charset: 'abcdefABCDEF'
        }
      ]
    })
  ]
}

About

Creates a MSDF font from a TTF font

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published