FontCustom / fontcustom

Generate custom icon webfonts from the comfort of the command line.
3.29k stars 423 forks source link

[Bug] Fontcustom doesn't find woff2_compress on Windows despite it being installed an in PATH. #400

Open futuremotiondev opened 6 months ago

futuremotiondev commented 6 months ago

See the error below:

fontcustom compile ".\UI Secondary\"
Calling `DidYouMean::SPELL_CHECKERS.merge!(error_name => spell_checker)' has been deprecated. Please call `DidYouMean.correct_error(error_name, spell_checker)' instead.
C:/Ruby32-x64/lib/ruby/gems/3.2.0/gems/fontcustom-2.0.0/lib/fontcustom/base.rb:45:in ``': No such file or directory - which woff2_compress (Errno::ENOENT)
        from C:/Ruby32-x64/lib/ruby/gems/3.2.0/gems/fontcustom-2.0.0/lib/fontcustom/base.rb:45:in `check_woff2'
        from C:/Ruby32-x64/lib/ruby/gems/3.2.0/gems/fontcustom-2.0.0/lib/fontcustom/base.rb:9:in `initialize'
        from C:/Ruby32-x64/lib/ruby/gems/3.2.0/gems/fontcustom-2.0.0/lib/fontcustom/cli.rb:83:in `new'
        from C:/Ruby32-x64/lib/ruby/gems/3.2.0/gems/fontcustom-2.0.0/lib/fontcustom/cli.rb:83:in `compile'
        from C:/Ruby32-x64/lib/ruby/gems/3.2.0/gems/thor-0.20.3/lib/thor/command.rb:27:in `run'
        from C:/Ruby32-x64/lib/ruby/gems/3.2.0/gems/thor-0.20.3/lib/thor/invocation.rb:126:in `invoke_command'
        from C:/Ruby32-x64/lib/ruby/gems/3.2.0/gems/thor-0.20.3/lib/thor.rb:387:in `dispatch'
        from C:/Ruby32-x64/lib/ruby/gems/3.2.0/gems/thor-0.20.3/lib/thor/base.rb:466:in `start'
        from C:/Ruby32-x64/lib/ruby/gems/3.2.0/gems/fontcustom-2.0.0/bin/fontcustom:5:in `<top (required)>'
        from C:/Ruby32-x64/bin/fontcustom:32:in `load'
        from C:/Ruby32-x64/bin/fontcustom:32:in `<main>'

woff2_compress.exe is in C:\BIN\woff2_compress.exe, which is in PATH. fontforge.exe (and related files) are in C:\BIN\FontForgeBuilds\bin, which is in PATH.

Any resolution?