{"_id":"layout-bmfont-text","_rev":"16-449b2da7db3365a5ec49794a0a220118","name":"layout-bmfont-text","description":"word-wraps and lays out text glyphs","dist-tags":{"latest":"1.3.4"},"versions":{"1.0.0":{"name":"layout-bmfont-text","version":"1.0.0","description":"word-wraps and lays out text glyphs","main":"index.js","license":"MIT","author":{"name":"Matt DesLauriers","email":"dave.des@gmail.com","url":"https://github.com/mattdesl"},"dependencies":{"as-number":"^1.0.0","indexof-property":"^1.1.1","word-wrapper":"^1.0.7","xtend":"^4.0.0"},"devDependencies":{"babel":"^4.7.8","babelify":"^5.0.4","bmfont-lato":"^2.1.1","budo":"^1.2.2","canvas-testbed":"^1.0.3","clamp":"^1.0.1","img":"^1.0.0","tape":"^3.5.0","uglify-js":"^2.4.17","watchify":"^2.4.0"},"scripts":{"build":"browserify demo/index.js -t babelify | uglifyjs -cm > demo/bundle.js","start":"budo demo/index.js -o demo/bundle.js --live -d -t babelify | garnish -v"},"keywords":["left","to","right","left-to-right","LTR","text","layout","shape","shaping","shaper","glyphs","glyph","render","font","fonts","fillText"],"repository":{"type":"git","url":"git://github.com/Jam3/layout-bmfont-text.git"},"homepage":"https://github.com/Jam3/layout-bmfont-text","bugs":{"url":"https://github.com/Jam3/layout-bmfont-text/issues"},"gitHead":"5c1c2fd9cf5a2f4e8308f492dff8b5089f5d61f3","_id":"layout-bmfont-text@1.0.0","_shasum":"b246090deb9a27a0007fc0981a4c2f3573d3d5f8","_from":".","_npmVersion":"1.4.28","_npmUser":{"name":"mattdesl","email":"dave.des@gmail.com"},"maintainers":[{"name":"mattdesl","email":"dave.des@gmail.com"}],"dist":{"shasum":"b246090deb9a27a0007fc0981a4c2f3573d3d5f8","tarball":"https://registry.npmjs.org/layout-bmfont-text/-/layout-bmfont-text-1.0.0.tgz","integrity":"sha512-m+W99ukyLFMp2xmquduW34bwOzQDGlbSK4muN1RdjompNOKA2TEkae3/g2IHoT+NgHcYhS6j0LYlcHBacLcmZg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDFtHDuq4DNTbmGgNqRoMncWuKQdm90t2v4MzokgI568AIhAOlkXUbizkKueHKZe6HkP8C8AmKJQvfih9c7OtcTjcB4"}]}},"1.0.1":{"name":"layout-bmfont-text","version":"1.0.1","description":"word-wraps and lays out text glyphs","main":"index.js","license":"MIT","author":{"name":"Matt DesLauriers","email":"dave.des@gmail.com","url":"https://github.com/mattdesl"},"dependencies":{"as-number":"^1.0.0","indexof-property":"^1.1.1","word-wrapper":"^1.0.7","xtend":"^4.0.0"},"devDependencies":{"babel":"^4.7.8","babelify":"^5.0.4","bmfont-lato":"^2.1.1","budo":"^1.2.2","canvas-testbed":"^1.0.3","clamp":"^1.0.1","img":"^1.0.0","lerp":"^1.0.3","smoothstep":"^1.0.1","tape":"^3.5.0","touch-position":"^1.0.3","uglify-js":"^2.4.17","vectors":"^0.1.0","watchify":"^2.4.0"},"scripts":{"build":"browserify demo/index.js -t babelify | uglifyjs -cm > demo/bundle.js","start":"budo demo/index.js -o demo/bundle.js --live -d -t babelify | garnish -v","stress":"budo demo/stress.js -o demo/bundle-stress.js --live -d -t babelify | garnish -v"},"keywords":["left","to","right","left-to-right","LTR","text","layout","shape","shaping","shaper","glyphs","glyph","render","font","fonts","fillText"],"repository":{"type":"git","url":"git://github.com/Jam3/layout-bmfont-text.git"},"homepage":"https://github.com/Jam3/layout-bmfont-text","bugs":{"url":"https://github.com/Jam3/layout-bmfont-text/issues"},"gitHead":"c404288abca498737b5e69fc05d7d5ae0d049627","_id":"layout-bmfont-text@1.0.1","_shasum":"f6717ced742c3bd464902d3fe72b648011b2449f","_from":".","_npmVersion":"1.4.28","_npmUser":{"name":"mattdesl","email":"dave.des@gmail.com"},"maintainers":[{"name":"mattdesl","email":"dave.des@gmail.com"}],"dist":{"shasum":"f6717ced742c3bd464902d3fe72b648011b2449f","tarball":"https://registry.npmjs.org/layout-bmfont-text/-/layout-bmfont-text-1.0.1.tgz","integrity":"sha512-WcGG5K+C9f4kNLBNtUdmAtFOY9advPRLcW8F/znOLA3zKtqhX29tuxscFPzP28OOBgmA7Lnt6RjxuzrWx1mWMQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDqwlGzaOBe5MywiFcFma9yCCDOeA2bGSD0rr2rF29iugIhAMKUx/sXwO4CX7y5KcZ3UHwHQBM2MGYxYamk4gr9cwgu"}]}},"1.0.2":{"name":"layout-bmfont-text","version":"1.0.2","description":"word-wraps and lays out text glyphs","main":"index.js","license":"MIT","author":{"name":"Matt DesLauriers","email":"dave.des@gmail.com","url":"https://github.com/mattdesl"},"dependencies":{"as-number":"^1.0.0","indexof-property":"^1.1.1","word-wrapper":"^1.0.7","xtend":"^4.0.0"},"devDependencies":{"babel":"^4.7.8","babelify":"^5.0.4","bmfont-lato":"^2.1.1","budo":"^1.2.2","canvas-testbed":"^1.0.3","clamp":"^1.0.1","img":"^1.0.0","lerp":"^1.0.3","smoothstep":"^1.0.1","tape":"^3.5.0","touch-position":"^1.0.3","uglify-js":"^2.4.17","vectors":"^0.1.0","watchify":"^2.4.0"},"scripts":{"build":"browserify demo/index.js -t babelify | uglifyjs -cm > demo/bundle.js","start":"budo demo/index.js -o demo/bundle.js --live -d -t babelify | garnish -v","stress":"budo demo/stress.js -o demo/bundle-stress.js --live -d -t babelify | garnish -v"},"keywords":["left","to","right","left-to-right","LTR","text","layout","shape","shaping","shaper","glyphs","glyph","render","font","fonts","fillText"],"repository":{"type":"git","url":"git://github.com/Jam3/layout-bmfont-text.git"},"homepage":"https://github.com/Jam3/layout-bmfont-text","bugs":{"url":"https://github.com/Jam3/layout-bmfont-text/issues"},"gitHead":"1a42c10a30456050e9b5a67416321bd2e7240a90","_id":"layout-bmfont-text@1.0.2","_shasum":"b62d4f740ef03bb82dc98ddfcfc7ef2d55e82b7b","_from":".","_npmVersion":"1.4.28","_npmUser":{"name":"mattdesl","email":"dave.des@gmail.com"},"maintainers":[{"name":"mattdesl","email":"dave.des@gmail.com"}],"dist":{"shasum":"b62d4f740ef03bb82dc98ddfcfc7ef2d55e82b7b","tarball":"https://registry.npmjs.org/layout-bmfont-text/-/layout-bmfont-text-1.0.2.tgz","integrity":"sha512-98vLe09nZRcelQBl/vTz8VXhilf6hRd6tHuspLDA5FosjjhUZcbSbFXM9/Tv8Aji5OngvXlCKHa/IHDduQF3lg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIDIOmiEZeyC5bssgQazVu0flmSdZZiQ+vvVE3l7EjQaHAiEAnh0JgF84LJY82wlk2B4RPWQ91kbSP4moafE9IbYu2+s="}]}},"1.1.0":{"name":"layout-bmfont-text","version":"1.1.0","description":"word-wraps and lays out text glyphs","main":"index.js","license":"MIT","author":{"name":"Matt DesLauriers","email":"dave.des@gmail.com","url":"https://github.com/mattdesl"},"dependencies":{"as-number":"^1.0.0","indexof-property":"^1.1.1","word-wrapper":"^1.0.7","xtend":"^4.0.0"},"devDependencies":{"babel":"^4.7.8","babelify":"^5.0.4","bmfont-lato":"^2.1.1","budo":"^1.2.2","canvas-testbed":"^1.0.3","clamp":"^1.0.1","img":"^1.0.0","lerp":"^1.0.3","smoothstep":"^1.0.1","tape":"^3.5.0","touch-position":"^1.0.3","uglify-js":"^2.4.17","vectors":"^0.1.0","watchify":"^2.4.0"},"scripts":{"build":"browserify demo/index.js -t babelify | uglifyjs -cm > demo/bundle.js","start":"budo demo/index.js -o demo/bundle.js --live -d -t babelify | garnish -v","stress":"budo demo/stress.js -o demo/bundle-stress.js --live -d -t babelify | garnish -v"},"keywords":["left","to","right","left-to-right","LTR","text","layout","shape","shaping","shaper","glyphs","glyph","render","font","fonts","fillText"],"repository":{"type":"git","url":"git://github.com/Jam3/layout-bmfont-text.git"},"homepage":"https://github.com/Jam3/layout-bmfont-text","bugs":{"url":"https://github.com/Jam3/layout-bmfont-text/issues"},"gitHead":"979f52b9061ad8b68c8059639ab5c923054d0f62","_id":"layout-bmfont-text@1.1.0","_shasum":"e0634570a133b8160fc9bacd0af579a193ad4806","_from":".","_npmVersion":"1.4.28","_npmUser":{"name":"mattdesl","email":"dave.des@gmail.com"},"maintainers":[{"name":"mattdesl","email":"dave.des@gmail.com"}],"dist":{"shasum":"e0634570a133b8160fc9bacd0af579a193ad4806","tarball":"https://registry.npmjs.org/layout-bmfont-text/-/layout-bmfont-text-1.1.0.tgz","integrity":"sha512-+/HPZBSAEfruU/4HDzq+3Gpc7pVSuyg+7xzByva585ApSpepuRsmgGHysD7NXVhUnh4GPDRGidc4a04URmeY1g==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIH/dXipRSb32J0RwPjJW1Wvtk1rBqWmzELUoReBsY0EQAiEA0Od/vWoyX9wyfFJ8n4m4/3r9f6z2zl5HnTCgMpKqet8="}]}},"1.2.0":{"name":"layout-bmfont-text","version":"1.2.0","description":"word-wraps and lays out text glyphs","main":"index.js","license":"MIT","author":{"name":"Matt DesLauriers","email":"dave.des@gmail.com","url":"https://github.com/mattdesl"},"dependencies":{"as-number":"^1.0.0","indexof-property":"^1.1.1","word-wrapper":"^1.0.7","xtend":"^4.0.0"},"devDependencies":{"babel":"^4.7.8","babelify":"^5.0.4","bmfont-lato":"^2.1.1","budo":"^1.2.2","canvas-testbed":"^1.0.3","clamp":"^1.0.1","img":"^1.0.0","lerp":"^1.0.3","smoothstep":"^1.0.1","tape":"^3.5.0","touch-position":"^1.0.3","uglify-js":"^2.4.17","vectors":"^0.1.0","watchify":"^2.4.0"},"scripts":{"build":"browserify demo/index.js -t babelify | uglifyjs -cm > demo/bundle.js","start":"budo demo/index.js -o demo/bundle.js --live -d -t babelify | garnish -v","stress":"budo demo/stress.js -o demo/bundle-stress.js --live -d -t babelify | garnish -v"},"keywords":["left","to","right","left-to-right","LTR","text","layout","shape","shaping","shaper","glyphs","glyph","render","font","fonts","fillText"],"repository":{"type":"git","url":"git://github.com/Jam3/layout-bmfont-text.git"},"homepage":"https://github.com/Jam3/layout-bmfont-text","bugs":{"url":"https://github.com/Jam3/layout-bmfont-text/issues"},"gitHead":"02afd6d2ae14720883d684d72ba17c4c4541a91f","_id":"layout-bmfont-text@1.2.0","_shasum":"8a1da6d562adfbada62024ac8d949f70c757be3a","_from":".","_npmVersion":"1.4.28","_npmUser":{"name":"mattdesl","email":"dave.des@gmail.com"},"maintainers":[{"name":"mattdesl","email":"dave.des@gmail.com"}],"dist":{"shasum":"8a1da6d562adfbada62024ac8d949f70c757be3a","tarball":"https://registry.npmjs.org/layout-bmfont-text/-/layout-bmfont-text-1.2.0.tgz","integrity":"sha512-nSInOIy9Yj+K+SxCYmnFMSO1B5sMWnJqR6C5capTe7hnvqxeUY2IwaB2oj1DMMgdoSMIa4xnknweICnKCWM0eg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCICTaRfqx3oNTrR+8sMTz5NXqOC8RopxolaW47wdKLv/eAiEA7z0mP8cVu2Jc/+HgJ8d9EowgJ1jd8yEVpEaO0lLDrZM="}]}},"1.3.0":{"name":"layout-bmfont-text","version":"1.3.0","description":"word-wraps and lays out text glyphs","main":"index.js","license":"MIT","author":{"name":"Matt DesLauriers","email":"dave.des@gmail.com","url":"https://github.com/mattdesl"},"dependencies":{"as-number":"^1.0.0","indexof-property":"^1.1.1","word-wrapper":"^1.0.7","xtend":"^4.0.0"},"devDependencies":{"babel":"^4.7.8","babelify":"^5.0.4","bmfont-lato":"^2.1.1","budo":"^1.2.2","canvas-testbed":"^1.0.3","clamp":"^1.0.1","img":"^1.0.0","lerp":"^1.0.3","smoothstep":"^1.0.1","tape":"^3.5.0","touch-position":"^1.0.3","uglify-js":"^2.4.17","vectors":"^0.1.0","watchify":"^2.4.0"},"scripts":{"test":"node test","build":"browserify demo/index.js -t babelify | uglifyjs -cm > demo/bundle.js","start":"budo demo/index.js -o demo/bundle.js --live -d -t babelify | garnish -v","stress":"budo demo/stress.js -o demo/bundle-stress.js --live -d -t babelify | garnish -v"},"keywords":["left","to","right","left-to-right","LTR","text","layout","shape","shaping","shaper","glyphs","glyph","render","font","fonts","fillText"],"repository":{"type":"git","url":"git://github.com/Jam3/layout-bmfont-text.git"},"homepage":"https://github.com/Jam3/layout-bmfont-text","bugs":{"url":"https://github.com/Jam3/layout-bmfont-text/issues"},"gitHead":"435b22c63feae4d1f4b2061a1d9b2486b7f2b183","_id":"layout-bmfont-text@1.3.0","_shasum":"2d1b84306eb73b77948f454ec2eb0f7058ea1385","_from":".","_npmVersion":"2.1.18","_nodeVersion":"0.10.32","_npmUser":{"name":"mattdesl","email":"dave.des@gmail.com"},"dist":{"shasum":"2d1b84306eb73b77948f454ec2eb0f7058ea1385","tarball":"https://registry.npmjs.org/layout-bmfont-text/-/layout-bmfont-text-1.3.0.tgz","integrity":"sha512-ygnexV/WeDAuNBvfjB5vr6kJR4pyifegazP86NgK2XnpduU1wFWGji6CVztsTJRHwJ9fqcHxwxK+ToHlbtMDng==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIGaU2vkAW2oZRJ8mQbl95wZf3kLvyyLEw8vcULeuzW1rAiEA9KvRjPpIh69NnqY25UV1P+rNPRTKfOp6bB8Pr9eGEng="}]},"maintainers":[{"name":"mattdesl","email":"dave.des@gmail.com"}]},"1.3.2":{"name":"layout-bmfont-text","version":"1.3.2","description":"word-wraps and lays out text glyphs","main":"index.js","license":"MIT","author":{"name":"Matt DesLauriers","email":"dave.des@gmail.com","url":"https://github.com/mattdesl"},"dependencies":{"as-number":"^1.0.0","indexof-property":"^1.1.1","word-wrapper":"^1.0.7","xtend":"^4.0.0"},"devDependencies":{"babel":"^4.7.8","babelify":"^5.0.4","bmfont-lato":"^2.1.1","budo":"^1.2.2","canvas-testbed":"^1.0.3","clamp":"^1.0.1","img":"^1.0.0","lerp":"^1.0.3","smoothstep":"^1.0.1","tape":"^3.5.0","touch-position":"^1.0.3","uglify-js":"^2.4.17","vectors":"^0.1.0","watchify":"^2.4.0"},"scripts":{"test":"node test","build":"browserify demo/index.js -t babelify | uglifyjs -cm > demo/bundle.js","start":"budo demo/index.js -o demo/bundle.js --live -d -t babelify | garnish -v","stress":"budo demo/stress.js -o demo/bundle-stress.js --live -d -t babelify | garnish -v"},"keywords":["left","to","right","left-to-right","LTR","text","layout","shape","shaping","shaper","glyphs","glyph","render","font","fonts","fillText"],"repository":{"type":"git","url":"git://github.com/Jam3/layout-bmfont-text.git"},"homepage":"https://github.com/Jam3/layout-bmfont-text","bugs":{"url":"https://github.com/Jam3/layout-bmfont-text/issues"},"gitHead":"ea28877ece9aadc13e097e186153698e3a502600","_id":"layout-bmfont-text@1.3.2","_shasum":"b2044412daf1043126ae741f0fe50a0c0549f216","_from":".","_npmVersion":"2.1.18","_nodeVersion":"0.10.32","_npmUser":{"name":"mattdesl","email":"dave.des@gmail.com"},"dist":{"shasum":"b2044412daf1043126ae741f0fe50a0c0549f216","tarball":"https://registry.npmjs.org/layout-bmfont-text/-/layout-bmfont-text-1.3.2.tgz","integrity":"sha512-EZ75GWi5b5IaquNmT5cv7i65PSPg1q/pB/QhPFdti4Tccou8hGNdCXkhQipRv0espnIrIZAyaiPtP/AkE2S8IQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIGamstTf+T14y396Dypci7LvtBboePiTHY07Ikk+y83KAiEA9sbTqXHC7gyqo0zR4uBjJIrjrF2e0PG+dUz9mZ3qagg="}]},"maintainers":[{"name":"mattdesl","email":"dave.des@gmail.com"}]},"1.3.3":{"name":"layout-bmfont-text","version":"1.3.3","description":"word-wraps and lays out text glyphs","main":"index.js","license":"MIT","author":{"name":"Matt DesLauriers","email":"dave.des@gmail.com","url":"https://github.com/mattdesl"},"dependencies":{"as-number":"^1.0.0","indexof-property":"^1.1.1","word-wrapper":"^1.0.7","xtend":"^4.0.0"},"devDependencies":{"babel":"^4.7.8","babelify":"^5.0.4","bmfont-lato":"^2.1.1","budo":"^1.2.2","canvas-testbed":"^1.0.3","clamp":"^1.0.1","img":"^1.0.0","lerp":"^1.0.3","smoothstep":"^1.0.1","tape":"^3.5.0","touch-position":"^1.0.3","uglify-js":"^2.4.17","vectors":"^0.1.0","watchify":"^2.4.0"},"scripts":{"test":"node test","build":"browserify demo/index.js -t babelify | uglifyjs -cm > demo/bundle.js","start":"budo demo/index.js -o demo/bundle.js --live -d -t babelify | garnish -v","stress":"budo demo/stress.js -o demo/bundle-stress.js --live -d -t babelify | garnish -v"},"keywords":["left","to","right","left-to-right","LTR","text","layout","shape","shaping","shaper","glyphs","glyph","render","font","fonts","fillText"],"repository":{"type":"git","url":"git://github.com/Jam3/layout-bmfont-text.git"},"homepage":"https://github.com/Jam3/layout-bmfont-text","bugs":{"url":"https://github.com/Jam3/layout-bmfont-text/issues"},"gitHead":"54cc7488bd17401cd0841c5cd8d44acbfb0533ce","_id":"layout-bmfont-text@1.3.3","_shasum":"b0269057f703939ea803b1e2f52af90c868e34fb","_from":".","_npmVersion":"2.14.7","_nodeVersion":"4.2.1","_npmUser":{"name":"bunnybones1","email":"oz@bunnybones.com"},"maintainers":[{"name":"bunnybones1","email":"oz@bunnybones.com"},{"name":"mattdesl","email":"dave.des@gmail.com"}],"dist":{"shasum":"b0269057f703939ea803b1e2f52af90c868e34fb","tarball":"https://registry.npmjs.org/layout-bmfont-text/-/layout-bmfont-text-1.3.3.tgz","integrity":"sha512-d0R0ST0UcShZVUlBkwjtxCev0QNnEkgEHDwa1K1BJOiujgDZCxQ3X0WD53eVNx0dooUE1wDrlGDRaonObqjJLw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIDnlQZT+polQpF94Nt3xDGoadQRNt7LGM8mezI8zjJJKAiEAnI8aYn2gMwkfMSQgm8wwueIl8YL1U7Iqic6ljfx30So="}]}},"1.3.4":{"name":"layout-bmfont-text","version":"1.3.4","description":"word-wraps and lays out text glyphs","main":"index.js","license":"MIT","author":{"name":"Matt DesLauriers","email":"dave.des@gmail.com","url":"https://github.com/mattdesl"},"dependencies":{"as-number":"^1.0.0","word-wrapper":"^1.0.7","xtend":"^4.0.0"},"devDependencies":{"babel":"^4.7.8","babelify":"^5.0.4","bmfont-lato":"^2.1.1","budo":"^1.2.2","canvas-testbed":"^1.0.3","clamp":"^1.0.1","img":"^1.0.0","lerp":"^1.0.3","smoothstep":"^1.0.1","tape":"^3.5.0","touch-position":"^1.0.3","uglify-js":"^2.4.17","vectors":"^0.1.0","watchify":"^2.4.0"},"scripts":{"test":"node test","build":"browserify demo/index.js -t babelify | uglifyjs -cm > demo/bundle.js","start":"budo demo/index.js -o demo/bundle.js --live -d -t babelify | garnish -v","stress":"budo demo/stress.js -o demo/bundle-stress.js --live -d -t babelify | garnish -v"},"keywords":["left","to","right","left-to-right","LTR","text","layout","shape","shaping","shaper","glyphs","glyph","render","font","fonts","fillText"],"repository":{"type":"git","url":"git://github.com/Jam3/layout-bmfont-text.git"},"homepage":"https://github.com/Jam3/layout-bmfont-text","bugs":{"url":"https://github.com/Jam3/layout-bmfont-text/issues"},"gitHead":"5efcf3d8179e5ed95c268f76a87975979f845db6","_id":"layout-bmfont-text@1.3.4","_shasum":"f20f2c5464774f48da6ce8a997fbce6d46945b81","_from":".","_npmVersion":"3.10.10","_nodeVersion":"6.9.4","_npmUser":{"name":"mattdesl","email":"dave.des@gmail.com"},"dist":{"shasum":"f20f2c5464774f48da6ce8a997fbce6d46945b81","tarball":"https://registry.npmjs.org/layout-bmfont-text/-/layout-bmfont-text-1.3.4.tgz","integrity":"sha512-mceomHZ8W7pSKQhTdLvOe1Im4n37u8xa5Gr0J3KPCHRMO/9o7+goWIOzZcUUd+Xgzy3+22bvoIQ0OaN3LRtgaw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDUC/CIzmB0I4rnJnVjx18iz/LgjJIavMiSOk8UaEyEDgIgIz4I5S9g8CHNBnUwG9nFe4Q0/5UqP1lLqefr/EDL7Tc="}]},"maintainers":[{"name":"bunnybones1","email":"oz@bunnybones.com"},{"name":"mattdesl","email":"dave.des@gmail.com"}],"_npmOperationalInternal":{"host":"packages-18-east.internal.npmjs.com","tmp":"tmp/layout-bmfont-text-1.3.4.tgz_1489161449430_0.20304471324197948"}}},"readme":"# layout-bmfont-text\n\n[![unstable](http://badges.github.io/stability-badges/dist/unstable.svg)](http://github.com/badges/stability-badges)\n\n![screenshot](http://i.imgur.com/fDIH2z9.png)\n\n[(click for canvas demo)](https://Jam3.github.io/layout-bmfont-text/demo)\n\nProvides layout and word-wrapping for left-to-right Latin text, primarily aimed at bitmap font rendering in Canvas/WebGL. The input font should be in the format of BMFont json, see [here](https://github.com/Jam3/load-bmfont/blob/master/json-spec.md). \n\nYou can use [bmfont-lato](https://www.npmjs.com/package/bmfont-lato) for testing, or [load-bmfont](https://www.npmjs.com/package/load-bmfont) for Node/Browser loading.\n\n```js\nvar createLayout = require('layout-bmfont-text')\nvar loadFont = require('load-bmfont')\n\nloadFont('fonts/Arial.fnt', function(err, font) {\n  var layout = createLayout({\n    font: font,\n    text: 'Lorem ipsum dolor\\nsit amet',\n    width: 300,\n    letterSpacing: 2,\n    align: 'center'\n  })\n\n  //for rendering\n  console.log(layout.glyphs)\n\n  //metrics\n  console.log(layout.width, layout.height)\n  console.log(layout.descender, layout.ascender)\n})\n```\n\nFeatures:\n\n- uses [word-wrapper](https://npmjs.com/package/word-wrapper) for layout\n  - supports `\"pre\"` and `\"nowrap\"` modes (like CSS)\n  - breaks on explicit newline characters `\"\\n\"`\n- handles `\"left\"`, `\"center\"` and `\"right\"` alignments\n- handles kerning, letter spacing, line height\n- handles space and tab widths\n- provides computed bounds of resulting text box\n- provides metrics for ascender, descender, x-height, etc\n\nComments/suggestions/PRs welcome.\n\n## Usage\n\n[![NPM](https://nodei.co/npm/layout-bmfont-text.png)](https://www.npmjs.com/package/layout-bmfont-text)\n\n#### `layout = createLayout(opt)`\n\nCreates a new layout with the given options.\n\n- `font` (required) the BMFont definition which holds chars, kernings, etc\n- `text` (string) the text to layout. Newline characters (`\\n`) will cause line breaks\n- `width` (number, optional) the desired width of the text box, causes word-wrapping and clipping in `\"pre\"` mode. Leave as undefined to remove word-wrapping (default behaviour)\n- `mode` (string) a mode for [word-wrapper](https://www.npmjs.com/package/word-wrapper); can be 'pre' (maintain spacing), or 'nowrap' (collapse whitespace but only break on newline characters), otherwise assumes normal word-wrap behaviour (collapse whitespace, break at width or newlines)\n- `align` (string) can be `\"left\"`, `\"center\"` or `\"right\"` (default: left)\n- `letterSpacing` (number) the letter spacing in pixels (default: 0)\n- `lineHeight` (number) the line height in pixels (default to `font.common.lineHeight`)\n- `tabSize` (number) the number of spaces to use in a single tab (default 4)\n- `start` (number) the starting index into the text to layout (default 0)\n- `end` (number) the ending index (exclusive) into the text to layout (default `text.length`)\n\n#### `layout.update(opt)`\n\nUpdates the layout, all options are the same as in constructor.\n\n#### `layout.glyphs`\n\nAn array of laid out glyphs that can be used for rendering. Each glyph looks like this:\n\n```js\n{\n    index: Number,    //the index of this glyph into the string\n    data: {...},      //the BMFont \"char\" object for this glyph\n    position: [x, y], //the baseline position to render this glyph\n    line: Number      //the line index this glyph appears in\n}\n```\n\nAll positions are relative to the bottom-left baseline of the text box (i.e. the last line). \n\n#### `layout.width`\n\nThe width of the text box, or the width provided in constructor. \n\n#### `layout.height`\n\nThe height of the text box; from baseline to the top of the ascender.\n\n## metrics\n\n#### `layout.baseline`\n\nThe baseline metric: measures top of text layout to the baseline of the first line.\n\n#### `layout.xHeight`\n\nThe x-height metric; the height of a lowercase character. Uses the first available height of the common lowercase Latin \"x-chars\", such as 'x', 'u', 'v', 'w', 'z'. \n\n#### `layout.descender`\n\nThe metric from baseline to the bottom of the descenders (like the bottom of a lowercase \"g\").\n\n#### `layout.ascender`\n\nThe metric for ascenders; typically from the top of x-height to the top of the glyph height.\n\n#### `layout.capHeight`\n\nThe cap height metric; the height of a flat uppercase letter like 'H' or 'I'. Uses the frist available height of common uppercase Latin flat capitals, such as 'H', 'I', 'E', 'T', 'K'.\n\n#### `layout.lineHeight`\n\nThe line height; the height from one baseline to the next. This is what was passed as `opt.lineHeight`, or defaults to the `font.common.lineHeight`.\n\n## License\n\nMIT, see [LICENSE.md](http://github.com/Jam3/layout-bmfont-text/blob/master/LICENSE.md) for details.\n","maintainers":[{"name":"bunnybones1","email":"oz@bunnybones.com"},{"name":"mattdesl","email":"dave.des@gmail.com"}],"time":{"modified":"2022-06-19T10:54:19.081Z","created":"2015-03-11T21:28:52.181Z","1.0.0":"2015-03-11T21:28:52.181Z","1.0.1":"2015-03-12T21:38:46.940Z","1.0.2":"2015-03-15T19:01:04.572Z","1.1.0":"2015-03-26T19:42:00.619Z","1.2.0":"2015-03-26T20:11:26.539Z","1.3.0":"2015-08-24T21:10:10.697Z","1.3.2":"2015-09-10T16:46:23.713Z","1.3.3":"2015-12-08T17:00:54.943Z","1.3.4":"2017-03-10T15:57:29.966Z"},"homepage":"https://github.com/Jam3/layout-bmfont-text","keywords":["left","to","right","left-to-right","LTR","text","layout","shape","shaping","shaper","glyphs","glyph","render","font","fonts","fillText"],"repository":{"type":"git","url":"git://github.com/Jam3/layout-bmfont-text.git"},"author":{"name":"Matt DesLauriers","email":"dave.des@gmail.com","url":"https://github.com/mattdesl"},"bugs":{"url":"https://github.com/Jam3/layout-bmfont-text/issues"},"license":"MIT","readmeFilename":"README.md","users":{"hellopath":true}}