parse-bmfont-binary:将 BMFont 二进制缓冲区读入 JSON 对象

时间:2021-06-09 23:08:32
【文件属性】:
文件名称:parse-bmfont-binary:将 BMFont 二进制缓冲区读入 JSON 对象
文件大小:21KB
文件格式:ZIP
更新时间:2021-06-09 23:08:32
JavaScript 解析-bmfont-二进制 根据将二进制缓冲区中的 BMFont 编码为 JSON。 可以在 Node 或浏览器中使用(例如使用 browserify)。 var parse = require ( 'parse-bmfont-binary' ) fs . readFile ( 'fonts/Lato.bin' , function ( err , data ) { if ( err ) throw err var font = parse ( data ) //do something with your font console . log ( font . info . face ) console . log ( font . info . size ) console . log ( font . common . lineHeight ) co
【文件预览】:
parse-bmfont-binary-master
----.gitignore(56B)
----package.json(868B)
----LICENSE.md(1KB)
----index.js(4KB)
----README.md(1KB)
----.npmignore(96B)
----test()
--------font.bin(5KB)
--------font.fnt(25KB)
--------test.js(934B)
--------font2.bin(10KB)
--------font2.json(41KB)
--------font.json(23KB)

网友评论