is-ttf

Check if a String/Buffer is TTF

Usage no npm install needed!

<script type="module">
  import isTtf from 'https://cdn.skypack.dev/is-ttf';
</script>

README

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