Skip to content

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

Description

@futuremotiondev

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions