Iconscout / unicons

Unicons by IconScout offers 7,000+ free 3D and animated icons plus icon fonts in line, monochrome, solid and thin line styles. Use them in your web, iOS or Android design projects.
https://iconscout.com/unicons
Other
1.42k stars 98 forks source link

fix: OTS parsing warnings #176

Closed imzedi closed 1 year ago

imzedi commented 1 year ago

Reported Issue

"OTS parsing error: invalid sfntVersion" console warnings in modern browsers but the fonts were visible on the page.

Problem

The problem was with the fontello-cli package, which was not generating some of the WOFF2 fonts properly. and that's why the browser was throwing warnings. Even though It was working because the browser was downloading WOFF font as a fallback font.

Solution/Patch:

Once the fontello generates all fonts, we will overwrite WOFF2 fonts by generating them from TTF using a different library ttf2woff2.