Converting my OTF font into multiple web fonts with this bash script
I came across this use-case where we had to use a specific custom font but it was only available in .otf. However, we want to support multiple formats to ensure even deprecated browsers can load the font. Otf has a global coverage of 97.89% but we didn’t want to take any chances of the font not loading as it’s a crucial feature in our app.
I wanted to convert the font to support the following browsers:
- woff2 – Latest browsers
- woff – Modern browsers
- ttf – Apple and mobile OS
svg– older safari and ios support- eot – older IE support