How do you convert a .ttf file to .woff file (webfont) using ruby?
We want to allow users to upload a ttf file, convert it and embed the woff file.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
There are two tools available to convert TTF to WOFF.
sfnt2woff – found here: http://people.mozilla.com/~jkew/woff/ – This is a command line tool that you should be able to call from Ruby
sfntly – found here: http://code.google.com/p/sfntly/ – This is a command-line Java suite developed by Google to do a bunch of font tasks, including WOFF generation.