philip / font-optimizer (http://fonts.philip.html5.org/)

Web Font Optimizer: a library to generate subsets of TTF fonts, removing unneeded glyphs to save bandwidth.

Clone this repository (size: 275.4 KB): HTTPS / SSH
$ hg clone http://bitbucket.org/philip/font-optimizer
commit 28: 136826b53242
parent 27: d29f81ce3539
Fix obfuscator to work with Chrome defaulttip
Philip Taylor / philip
9 months ago
View at rev
font-optimizer /
filename size last modified message
Font  
ext  
t  
.hgignore 34 B 15 months ago Minor cleanups
LICENSE 1.1 KB 15 months ago Add MIT license file
README.txt 951 B 15 months ago Add initial version of library code and sample tool
convert-eot.pl 1.2 KB 13 months ago Add TTF<->EOT tool
gen-tests.pl 6.5 KB 14 months ago Fix handling of certain GPOS subtable types.
list-features.pl 929 B 14 months ago Support the folding of certain GSUB features into the cmap…
modify-names.pl 5.9 KB 14 months ago Add a script for modifying the 'name' table in a reasonably…
obfuscate-font.pl 2.8 KB 9 months ago Fix obfuscator to work with Chrome
subset.pl 3.6 KB 14 months ago Support the folding of certain GSUB features into the cmap…

README

 Font Optimizer
-==============-

Developed by Philip Taylor (excors@gmail.com)

The main purpose of this project is to provide a way to convert TTF files into
smaller files that contain only a subset of the original's glyphs, focusing on
high-quality conversion (preserving special typographic features like kerning
and ligatures).

The project mainly consists of:

    Font/Subsetter.pm   - library to generate subsets of TTF files
    Font/EOTWrapper.pm  - library to convert TTF to EOT
    subset.pl           - example script using the libraries
    ext/                - external libraries (particularly Font::TTF, since a
                          specific not-yet-released version is needed)

The libraries are used in the web service at http://fonts.philip.html5.org/

The code doesn't really have any documentation or proper APIs, and it hasn't
been tested on a wide range of fonts, but when it works it should be fairly
reliable and stable.