font-generator/test/index.js

18 lines
335 B
JavaScript

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