Files
NapCatQQ/.pnpm-store/v3/files/7f/32ad6c48a7ee2b8884d5704e1e90a4edb5dc7246a3ac4237b82dd5a80e706c42211b26412ad2a54b2015bdad60d845748806ce521426822b11644149632592
TanTan e311ca3275
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
docs: 仓库链接指向本镜像仓库
2026-11-13 09:25:58 +08:00

35 lines
596 B
Plaintext

# is-otf [![Build Status](https://travis-ci.org/junmer/is-otf.svg?branch=master)](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/)