Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/samboy/WOFF
TTF to WOFF conversion reference code
https://github.com/samboy/WOFF
webfont woff woff-files
Last synced: 29 days ago
JSON representation
TTF to WOFF conversion reference code
- Host: GitHub
- URL: https://github.com/samboy/WOFF
- Owner: samboy
- License: other
- Created: 2016-05-08T16:12:54.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2019-02-24T17:06:59.000Z (almost 6 years ago)
- Last Synced: 2024-08-04T01:15:39.144Z (4 months ago)
- Topics: webfont, woff, woff-files
- Language: C
- Homepage: http://people.mozilla.org/~jkew/woff/
- Size: 28.3 KB
- Stars: 25
- Watchers: 3
- Forks: 4
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-typography - WOFF - WOFF conversion reference code. (C)
README
# WOFF
WOFF is a compressed format for putting fonts on web pages. While
browsers can support True Type font files (.ttf suffix), WOFF files
are smaller and are compatible with all modern browsers (e.g. Internet
Explorer has had WOFF support since IE9 from 2011, Firefox has supported
WOFF files since 2009, etc.).## This repo
This is a mirror of http://people.mozilla.org/~jkew/woff/ (which has since
fallen off of the Internet) so that the open-source reference code remains
available and is not put behind a paywall.To compile and install, make sure you have the zlib development libraries
installed (e.g. in CentOS6 `yum -y install zlib-devel` as root), thengit clone https://github.com/samboy/WOFF
cd WOFF
makeThen, as root:
cp sfnt2woff /usr/local/bin
Once this is done, to make a webfont, enter the directory with the .ttf
file, then run sfnt2woffsfnt2woff Chortle2014f.ttf
This creates a Chortle2014f.woff webfont file. Replace
“Chortle2014f.ttf” with the name of the actual webfont to convert.[http://people.mozilla.org/~jkew/woff/](http://web.archive.org/web/20170630235618/https://people-mozilla.org/~jkew/woff/) (site down; archive link)
has Windows and MacOS binaries for people who do not wish to install a
compiler.## Zopfli compression
Zopfli compression can make WOFF files with a better compression
ratio:https://github.com/bramstein/sfnt2woff-zopfli
## WOFF2
Here is the reference code for making WOFF2 files:
https://github.com/google/woff2
Note that this code will _not_ install in CentOS6, but compiles and
installs just fine in CentOS7:git clone --recursive https://github.com/google/woff2.git
cd woff2
make clean allwoff2 font generation is similar:
woff2_compress Chortle2014f.ttf
## EOT
Keep in mind that EOT is an obsolete format; any browser which supports
EOT but _does not_ support WOFF (Read: Internet Explorer 6-8) is a browser
which is unsupported.That in mind, the best EOT converter for Windows can be downloaded at
[http://eotfast.com](http://web.archive.org/web/20180101204541/http://www.eotfast.com/) (site down; archive link has files) ;
there are a couple of cross platform EOT converters including the one at
https://www.w3.org/Tools/eot-utils/