Fonts Issue
-
Hello! our team found a issue with downloading fonts from google.
In file kirki/kirki-packages/module-webfonts/src/Webfonts/Downloader.php and function get_local_files_from_css($css)
Firstly the function of downloading and naming fonts does not work correctly, After a request to Google fonts it returns a file called “font”, without the .woff2 extension.
Secondly, it overwrites the fonts that were previously downloaded, i.e. if there are font weghts for 200, 300, 400, then it does not download everything but overwrites the font file.To fix this issues, our team slightly modified your code, assigned a random name and added the .woff2 extension.
See here – https://prnt.sc/LMNf3eUO8q7T
Can you please update your code?
thank you.
- The topic ‘Fonts Issue’ is closed to new replies.