eot-parser

1.0.0 • Public • Published

eot-parser Build Status

EOT font parser

Installation

npm install eot-parser

Usage

var fs = require('fs');
var parser = require('eot-parser');
 
fs.readFile('font.eot', function (err, contents) {
    if (err) throw err;
    parser(contents).then(function (result) {
        console.log(result);
    });
});

Outputs:

{
    ...
    "familyName": "SourceSansPro-Regular",
    "styleName": "Regular",
    "versionName": "Version 1.050;PS 1.000;hotconv 1.0.70;makeotf.lib2.5.5900",
    "fullName": "SourceSansPro-Regular",
    ...
}

Readme

Keywords

Package Sidebar

Install

npm i eot-parser

Weekly Downloads

96

Version

1.0.0

License

MIT

Last publish

Collaborators

  • andyjansson