title: Converting TTF to WOFF
body: <p>I have been trying to convert TTF to WOFF using various command line and online tools. I have tried following : </p>
  
  <p>Command line : </p>
  
  <ul>
  <li>sfntwoff : <a href="https://people-mozilla.org/~jkew/woff/" rel="noreferrer">https://people-mozilla.org/~jkew/woff/</a></li>
  <li>ttf2woff : <a href="http://wizard.ae.krakow.pl/~jb/ttf2woff/" rel="noreferrer">http://wizard.ae.krakow.pl/~jb/ttf2woff/</a></li>
  <li>ruby gem : <a href="https://coderwall.com/p/kyc8lw/convert-fonts-from-the-command-line" rel="noreferrer">https://coderwall.com/p/kyc8lw/convert-fonts-from-the-command-line</a></li>
  </ul>
  
  <p>Online : </p>
  
  <ul>
  <li>font squirrel : <a href="https://www.fontsquirrel.com/tools/webfont-generator" rel="noreferrer">https://www.fontsquirrel.com/tools/webfont-generator</a></li>
  <li>transfonter : <a href="http://transfonter.org/" rel="noreferrer">http://transfonter.org/</a></li>
  </ul>
  
  <p>I have ttf file of size ~220KB. All these tools generate woff file of size around 100KB except for font-squirrel which generates a size optimized file of ~20KB. </p>
  
  <p>I am curious as to what font-squirrel does which no other command-line (read open source) tool is able to do. And if possible how can I do the same via command-line, even if it involves writing or hacking some code. </p>