ShenNong/packages/字体精简工具/node_modules/is-ttf/readme.md
2024-06-21 18:44:06 +08:00

596 B

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