npm.io
0.2.2 • Published 10 years ago

is-ttf

Licence
MIT
Version
0.2.2
Deps
1
Vulns
0
Weekly
0
Stars
2

is-ttf Build Status

Check if a String/Buffer is TTF

Install

$ npm install --save is-ttf

Usage

var fs = require('fs');
isTtf(fs.readFileSync('pixel.ttf'));
//=> true

API

isTtf(source[, options])
  • source ArrayBuffer | Buffer | String
  • options
    • tables necessarily tables of ttf

thx

License

MIT junmer

Keywords