Skip to content
A font-face generator for creating browser-usable fonts and CSS/Sass files from any OTF
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.gitignore
Makefile
README.md

README.md

Font-face maker

A font-face generator for creating browser-usable fonts and CSS/Sass files from any OTF.

Based on fontfacegen without using Node.

Getting started

Prerequisites

Installing on macOS

Install with Homebrew:

brew tap bramstein/webfonttools
brew update
brew install fontforge woff2

Installing on Ubuntu

Clone and build woff2 then add woff2_compress to your $PATH. Next with apt:

apt install fontforge

Usage

Generate webfonts

make fonts FONT_PATH=/path/to/a_font.otf

Generate webfonts and CSS file

make css FONT_PATH=/path/to/a_font.otf

Generate webfonts and Sass file

make sass FONT_PATH=/path/to/a_font.otf

Change output directory

make fonts FONT_PATH=/path/to/a_font.otf DEST=/path/to/output/webfonts
You can’t perform that action at this time.