# ffgen

> A command-line wrapper for the fontfacegen package

Latest version **1.0.1** (published 2018-01-05) · ISC license · 0 weekly downloads

## Install

```sh
npm install ffgen
pnpm add ffgen
yarn add ffgen
bun add ffgen
```

Provides the command `ffgen`.

## 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.1 |
| Published | 2018-01-05 |
| First published | 2018-01-04 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | aschmelyun |
| Maintainers | aschmelyun |
| Keywords | font-face, font-face, generator, fontface, generator, generate, fonts, css, font, generator |

## Links

- npm: https://www.npmjs.com/package/ffgen
- npm.io page: https://npm.io/package/ffgen

## Dependencies (1)

- [fontfacegen](https://npm.io/package/fontfacegen.md) ^0.3.1

## Alternatives

- [style-dictionary](https://npm.io/package/style-dictionary.md) — 2.0M weekly downloads
- [postcss-merge-idents](https://npm.io/package/postcss-merge-idents.md) — 1.7M weekly downloads
- [@fontsource/noto-sans](https://npm.io/package/@fontsource/noto-sans.md) — 93.0K weekly downloads
- [uglifycss](https://npm.io/package/uglifycss.md) — 71.6K weekly downloads
- [mat4-interpolate](https://npm.io/package/mat4-interpolate.md) — 23.3K weekly downloads

## Recent versions

- 1.0.1 (latest) — 2018-01-05
- 1.0.0 — 2018-01-04

## README

# ffgen

A command-line wrapper for the fontfacegen package

### Installation

Prerequisites: [FontForge](https://fontforge.github.io/en-US/)

Installing it on MacOS is easy with Brew

``` bash
$ brew install fontforge
```

Afterwards, you can install ffgen easily with npm

``` bash
$ npm install ffgen
```

The above will isolate the command to your current project directory. If you want to use ffgen system-wide, install it globally with the **-g** tag in npm

``` bash
$ npm install -g ffgen
```

### Usage

``` bash
$ ffgen <path-to-font>
```

*Note: Fonts need to be in .otf or .ttf format*

Rendered fonts go into a folder with the name of the font file given, in the same directory as the origin file.

### Example

``` bash
$ ffgen assets/fonts/my-custom-font.otf
```

The above will output the following into a folder at **assets/fonts/my-custom-font/**:

- my-custom-font.css
- my-custom-font.eot
- my-custom-font.svg
- my-custom-font.ttf
- my-custom-font.woff
- my-custom-font.woff2

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