font-generator/test/index.js

15 lines
247 B
JavaScript

/**
* {test unit}
* @author yutent<yutent.io@gmail.com>
* @date 2024/02/04 11:48:14
*/
import { svg2ttf } from '../src/index.js'
import fs from 'iofs'
let svg = fs.cat('test/game.svg').toString()
let ttf = svg2ttf(svg)
// console.log(ttf)
字体生成器, 可将单个或多个svg转为字体文件
JavaScript 100%