majodev / google-webfonts-helper

A Hassle-Free Way to Self-Host Google Fonts. Get eot, ttf, svg, woff and woff2 files + CSS snippets
https://gwfh.mranftl.com
MIT License
12.02k stars 420 forks source link

Broken file suffix generation #53

Closed Turntable751 closed 1 year ago

Turntable751 commented 6 years ago

I'd guess that the suffixes for eot and svg below are wrong:

/ open-sans-regular - latin / @font-face { font-family: 'Open Sans'; font-style: normal; font-weight: 400; src: url('/fonts/open-sans-v15-latin-regular.eot'); / IE9 Compat Modes / src: local('Open Sans Regular'), local('OpenSans-Regular'), url('/fonts/open-sans-v15-latin-regular.eot?#iefix') format('embedded-opentype'), / IE6-IE8 / url('/fonts/open-sans-v15-latin-regular.woff2') format('woff2'), / Super Modern Browsers / url('/fonts/open-sans-v15-latin-regular.woff') format('woff'), / Modern Browsers / url('/fonts/open-sans-v15-latin-regular.ttf') format('truetype'), / Safari, Android, iOS / url('/fonts/open-sans-v15-latin-regular.svg#OpenSans') format('svg'); / Legacy iOS / } / open-sans-600 - latin / @font-face { font-family: 'Open Sans'; font-style: normal; font-weight: 600; src: url('/fonts/open-sans-v15-latin-600.eot'); / IE9 Compat Modes / src: local('Open Sans SemiBold'), local('OpenSans-SemiBold'), url('/fonts/open-sans-v15-latin-600.eot?#iefix') format('embedded-opentype'), / IE6-IE8 / url('/fonts/open-sans-v15-latin-600.woff2') format('woff2'), / Super Modern Browsers / url('/fonts/open-sans-v15-latin-600.woff') format('woff'), / Modern Browsers / url('/fonts/open-sans-v15-latin-600.ttf') format('truetype'), / Safari, Android, iOS / url('/fonts/open-sans-v15-latin-600.svg#OpenSans') format('svg'); / Legacy iOS / }

May be a parser bug.

hagenbuch commented 6 years ago

I have no authority but this must be wrong...