HOWTO: convert all otf / ttf in a folder to woff (batch) using a linux terminal

  • We need sfnt2woff tool (we can install Debian package woff-tools to have it)
  • At folder where some .ttf or otf files are, we create a new text file, for example to convert otf files, with this line:

for file in *.ttf; do sfnt2woff $file; done

  • then, we should add execution right to our file:

chmod a+x

  • and, finally, execute our bash script:


Ps: Two sample script files attached here ;-)



Añadir nuevo comentario

Texto sin formato

  • No se permiten etiquetas HTML.
  • Saltos automáticos de líneas y de párrafos.
  • Las direcciones de correos electrónicos y páginas web se convierten en enlaces automáticamente.