Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tvandervossen/387409 to your computer and use it in GitHub Desktop.
Save tvandervossen/387409 to your computer and use it in GitHub Desktop.
#!/usr/bin/env ruby
# Get the source for woff2sfnt from http://people.mozilla.org/~jkew/woff/woff-code-latest.zip
unless ARGV.empty?
ARGV.each do |filename|
if filename[-4..-1] == 'woff'
`woff2sfnt #{filename} > #{filename[0...-4]}otf`
end
end
else
p "Usage: #{$0} filename(s)"
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment