You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm currently trying to get fontcustom installed on a windows machine I have. I have followed the instructions as provided in the readme. Keep note that it makes no mention to explicitly install the Woff2 package from Google. Only Linux and Mac have those instructions.
When I try to run a compile step, the compilation fails like so:
It make mention that woff2_compress doesn't exist in the file system.
Upon checking the source code
From the initialisation of the fontcustom script it runs check_woff2 as below:
It's not checking whether or not we are currently running windows bfore the woff2_compress check.
So that means one of two things:
If I am required to install woff2 anyway that means the documentation is not that accurate and will need to be updated
If we don't actually need to install woff2, then we need to check if we are currently running on windows before running the woff2 check.
Thanks.
The text was updated successfully, but these errors were encountered:
This error comes because which is not a Windows command, but you can easily polyfill it: which.bat somewhere on path:
@echooffwhere%*exit /B %errorlevel%
Note that if you do this you can bypass the check_woff2 by adding an extra echo in there which fails the string comparison.
As far as I could see woff2 support is not necessarily required to run fontcustom. It'll generate the other files no problem, and the CSS which refers to woff2 files, but they won't exist. I know this because I forgot the exit line.
I'm currently trying to get fontcustom installed on a windows machine I have. I have followed the instructions as provided in the readme. Keep note that it makes no mention to explicitly install the Woff2 package from Google. Only Linux and Mac have those instructions.
When I try to run a compile step, the compilation fails like so:
It make mention that woff2_compress doesn't exist in the file system.
Upon checking the source code
check_woff2
as below:It's not checking whether or not we are currently running windows bfore the woff2_compress check.
So that means one of two things:
Thanks.
The text was updated successfully, but these errors were encountered: