【文件属性】:
文件名称:bmfont-lato:Lato 字体作为位图精灵表
文件大小:314KB
文件格式:ZIP
更新时间:2021-06-20 00:42:51
JavaScript
bmfont-lato
Lato 打包为,因此可能需要用于测试。
这也会导出一个images字段,它是一个与pages数组平行的数组。
var Lato = require ( 'bmfont-lato' )
//do something with the ndarrray image
var shape = Lato . images [ 0 ] . shape . slice ( 0 , 3 ) )
//e.g. image shape is 512x512x4
console . log ( shape )
//BMFont fields..
console . log ( Lato . info )
console . log ( Lato . chars )
console . log ( Lato . kernings )
由于所有字形都被打包成一个图像, paths
【文件预览】:
bmfont-lato-master
----.gitignore(60B)
----package.json(1KB)
----LICENSE.md(1KB)
----fnt()
--------lato.png(1MB)
--------Lato-Regular-32.fnt(32KB)
--------Lato-Regular-24.fnt(27KB)
--------Lato-Regular-16.fnt(17KB)
--------Lato-Regular-64.fnt(34KB)
----test.js(379B)
----transform.js(283B)
----24.js(27KB)
----README.md(2KB)
----image.js(115KB)
----16.js(17KB)
----32.js(32KB)
----image-uri.js(1.33MB)
----.npmignore(84B)
----64.js(34KB)
----OFL.txt(4KB)