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 otf2woff.sh 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 otf2woff.sh

  • and, finally, execute our bash script:

./otf2woff.sh

Ps: Two sample script files attached here ;-)

 

Adjunts

Adjunt Mida
otf2woff.sh 44 bytes
ttf2woff.sh 44 bytes

Afegeix un nou comentari

Text pla

  • No es permet l'ús d'etiquetes HTML.
  • Les línies i paràgrafs es trenquen automàticament.
  • Les adreces web i de correu electrònic es transformen en enllaços automàticament.