font-generator/test/index.js

15 lines
244 B
JavaScript
Raw Normal View History

2024-02-04 16:45:25 +08:00
/**
* {test unit}
* @author yutent<yutent.io@gmail.com>
* @date 2024/02/04 11:48:14
*/
import { svg2ttf } from '../src/index.js'
2024-02-04 18:46:04 +08:00
import fs from 'iofs'
2024-02-04 16:45:25 +08:00
2024-02-04 18:46:04 +08:00
let svg = fs.cat('test/game.svg').toString()
let ttf = svg2ttf(svg)
console.log(ttf)