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)
|
|
|
|
|
2024-02-05 18:42:54 +08:00
|
|
|
// console.log(ttf)
|