DEV Community

Discussion on: Converting my OTF font into multiple web fonts with this bash script

Collapse
 
dcts profile image
dcts

Thanks for this article, way better than converting online, which somehow never works. I think there is an error with the WOFF format, the command sfnt2woff does not allow to specify a destination folder and the > did not work for me.

I replaced this with

sfnt2woff ${SOURCE}
mv "./$FILENAME.woff" "./$DESTINATION/$FILENAME.woff"
Enter fullscreen mode Exit fullscreen mode

Maybe its helpful to someone else. I have put the file in a repo here: github.com/dcts/font-converter-ubuntu

Collapse
 
jankapunkt profile image
Jan Küster

Wow, thanks for pointing this out ❤️