Skip to content

Fontforge Compilation Failed #404

@charlieartist

Description

@charlieartist

Been a while since I had used the app, seen the dependencies had changed, so updated, and now things are broken.

Per this issue, am running it on Ruby 2.7.8 via RVM, but still hitting these errors:

       debug  Using settings from `fontcustom.yml`.
       debug  Using options:
                {:input=>{:vectors=>"Input", :templates=>"Input"},
                :output=>
                 {:fonts=>"Output/fonts",
                  :css=>"Output/stylesheets",
                  :preview=>"Output/styleguide"},
                :config=>"fontcustom.yml",
                :templates=>["css", "preview"],
                :font_name=>"kkicons",
                :font_design_size=>16,
                :font_em=>512,
                :font_ascent=>448,
                :font_descent=>64,
                :css_selector=>".icon-{{glyph}}",
                :preprocessor_path=>nil,
                :autowidth=>false,
                :no_hash=>true,
                :css3=>false,
                :debug=>true,
                :force=>true,
                :quiet=>false,
                :copyright=>""}
/Users/[Username]/.rvm/gems/ruby-2.7.8/gems/json-1.8.6/lib/json/common.rb:155: warning: Using the last argument as keyword parameters is deprecated
      status  Forcing compile.
/Users/[Username]/.rvm/gems/ruby-2.7.8/gems/json-1.8.6/lib/json/common.rb:155: warning: Using the last argument as keyword parameters is deprecated
       debug  Copyright (c) 2000-2025. See AUTHORS for Contributors.
               License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
               with many parts BSD <http://fontforge.org/license.html>. Please read LICENSE.
               Version: 20251009
               Based on sources from 2025-10-09 19:02 UTC-D.
              <sys>:0: UserWarning: pkg_resources is deprecated as an API. See https://setuptools.pypa.io/en/latest/pkg_resources.html. The pkg_resources package is slated for removal as early as 2025-11-30. Refrain from using this package or pin to Setuptools<81.
              Traceback (most recent call last):
                File "/Users/[Username]/.rvm/gems/ruby-2.7.8/gems/fontcustom-2.0.0/lib/fontcustom/scripts/generate.py", line 88, in <module>
                  name = createGlyph(glyph, data['source'], data['codepoint'])
                File "/Users/[Username]/.rvm/gems/ruby-2.7.8/gems/fontcustom-2.0.0/lib/fontcustom/scripts/generate.py", line 80, in createGlyph
                  glyph.left_side_bearing = glyph.left_side_bearing - shift
                  ^^^^^^^^^^^^^^^^^^^^^^^
              TypeError: 'float' object cannot be interpreted as an integer
       error  `fontforge` compilation failed.

System Info:
macOS 26.1
Fontcustom 2.0.0

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