Skip to content
This repository has been archived by the owner on Dec 7, 2019. It is now read-only.
/ font-face-maker Public archive

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

Notifications You must be signed in to change notification settings

Awea/font-face-maker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

26 Commits
 
 
 
 
 
 

Repository files navigation

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

About

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

Topics

Resources

Stars

Watchers

Forks

Packages

No packages published