pixelbutler
Version:
Low-res bitmap render engine for big screens
16 lines (15 loc) • 410 B
JavaScript
;
var Char = require('./Char');
var Font = (function () {
function Font(name, height, data) {
var _this = this;
this.name = name;
this.height = height;
this.chars = Object.create(null);
Object.keys(data).forEach(function (char) {
_this.chars[char] = new Char(char, data[char]);
});
}
return Font;
})();
module.exports = Font;