Convert TTF font files to EOT fonts
C++ Ruby C
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
ext/ttf2eot_ext
lib
.gitignore
Gemfile
Gemfile.lock
README.md
Rakefile
ttf2eot.gemspec

README.md

TTF2EOT

TTF2EOT provides ruby bindings for http://code.google.com/p/ttf2eot/.

Usage

There's just one method available: TTF2EOT.convert. It accepts a path or IO object for the source TTF file, and a path or IO object for the EOT file.

TTF2EOT.convert("input.ttf", "output.eot")
# => #<File:output.eot>

input = StringIO.new(File.read("input.ttf"))
output = StringIO.new
TTF2EOT.convert(input, output)
# => #<StringIO:0x007f815a83a210>