Build NapCat Artifacts / Windows Loader Test (push) Canceled after 0s
Build NapCat Artifacts / Type Check & Test (push) Canceled after 0s
Build NapCat Artifacts / Build NapCat.Framework (push) Canceled after 0s
Build NapCat Artifacts / Build NapCat.Shell (push) Canceled after 0s
35 lines
596 B
Plaintext
35 lines
596 B
Plaintext
# is-otf [](https://travis-ci.org/junmer/is-otf)
|
|
|
|
> Check if a String/Buffer/ArrayBuffer is [OTF](http://www.microsoft.com/typography/otspec/)
|
|
|
|
|
|
## Install
|
|
|
|
```sh
|
|
$ npm install --save is-otf
|
|
```
|
|
|
|
## Usage
|
|
|
|
```js
|
|
var fs = require('fs');
|
|
isOtf(fs.readFileSync('FontAwesome.otf'));
|
|
//=> true
|
|
```
|
|
|
|
## Thx
|
|
|
|
- [ynakajima/ttf.js](https://github.com/ynakajima/ttf.js)
|
|
|
|
## Test
|
|
|
|
```sh
|
|
$ npm test
|
|
```
|
|
|
|
> test file from [Font-Awesome](https://github.com/FortAwesome/Font-Awesome)
|
|
|
|
## License
|
|
|
|
MIT © [junmer](https://github.com/junmer/)
|