Pasar al contenido principal
Drupal

Navegación principal

  • Inicio
  • Serveis
  • Portfolio
  • Blog
  • Tutorials
  • Contacte
Menú de cuenta de usuario
  • Iniciar sesión

Ruta de navegación

  1. Inicio
  2. Com es fa per...
  3. Calaix de sastre

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

Por joan, 25 Enero, 2017
  • 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
Adjunto Tamaño
otf to woff batch bash script (44 bytes) 44 bytes
ttf to woff batch bash script (44 bytes) 44 bytes
font
woff
otf
ttf
batch conversion
script
Desenvolupament web
  • Versión para impresión

Enlaces transversales de Book para HOWTO: convert all otf / ttf in a folder to woff (batch) using a linux terminal

  • Suggestions to insert images on the web
  • Arriba
  • Crear un bot de rss al Fedivers usant Hubzilla

Navegación del libro

  • Administració de sistemes
  • CiviCRM
  • Correu electrònic
  • Drupal
  • Moodle
  • Calaix de sastre
    • Adjuntar un fitxer a una campanya de mailchimp
    • Suggestions to insert images on the web
    • HOWTO: convert all otf / ttf in a folder to woff (batch) using a linux terminal
    • Crear un bot de rss al Fedivers usant Hubzilla
  • Dolibarr
Canal RSS
Funciona con Drupal