# fast-font-info

> read info from font

Latest version **1.0.3** (published 2018-12-30) · MIT license · 0 weekly downloads

## Install

```sh
npm install fast-font-info
pnpm add fast-font-info
yarn add fast-font-info
bun add fast-font-info
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.3 |
| Published | 2018-12-30 |
| First published | 2018-12-30 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 279.9 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | xVan Turing |
| Maintainers | xvan-turing |

## Links

- npm: https://www.npmjs.com/package/fast-font-info
- Homepage: https://github.com/xVanTuring/fast-font-cmap
- npm.io page: https://npm.io/package/fast-font-info

## Recent versions

- 1.0.3 (latest) — 2018-12-30

## README

## Font Chars

> Node.js Only

### For What?

You can use this library to get the all char-code(unicode) from a font, supported format: TTF OTF WOFF

> woff2 will be supported soon

### How To

```js
const cmap = require("font-chars");
const fontPath = "./fonts/segoeui.ttf";
cmap.loadCMap(fontPath, (err, result) => {
  console.log(result.glyphIndexArray);
});
```

`glyphIndexArray` :

```js
glyphIndexArray = [[startUnicde, end], [start, end], [start, end]];
// include end value
```

### License

This project is based on [opentype.js](https://github.com/opentypejs/opentype.js)
If you want full support of reading font,getting glyph path,creating font ... on browser, the opentype.js is your best choice.
All my code is under MIT License.The fonts in fonts dir is test only.

---
_Source: https://npm.io/package/fast-font-info · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
