这是indexloc提供的服务,不要输入任何密码
Skip to content

font-patcher showing me oserror #864

@human9182

Description

@human9182

🗹 Requirements

  • I have searched the issues for my issue and found nothing related and/or helpful
  • I have searched the FAQ for help
  • I have searched the Wiki for help

🎯 Subject of the issue

Experienced behavior:
When I run fontforge -script font-patcher --fontawesome --glyphdir ./src/glyphs Inconsolata-Regular.ttf I got this

Copyright (c) 2000-2022. 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: 20220308
 Based on sources from 2022-03-11 17:46 UTC-ML-D-GDK3.
Core python package 'pkg_resources' not found: Cannot discover plugins
The following table(s) in the font have been ignored by FontForge
  Ignoring 'STAT' style attributes table
Use-my-metrics flag set on at least two components in glyph 631
No configfile given, skipping configfile related actions
Nerd Fonts Patcher v2.1.0 executing

The requested file, original-source.otf, does not exist
Traceback (most recent call last):
  File "/home/user/font-forge/font-patcher", line 1037, in <module>
    main()
  File "/home/user/font-forge/font-patcher", line 1032, in main
    patcher.patch()
  File "/home/user/font-forge/font-patcher", line 110, in patch
    symfont = fontforge.open(self.args.glyphdir + patch['Filename'])
OSError: Open failed

I didn't download the entire git since it's too big. What I did is run mkdir -p src/glyphs/font-awesome and downloaded the otfs from fontawesome website and put three of them(when you download and extract zip you get three otfs) in src/glyphs/font-awesome directory. The src directory is relative to font-patcher(both are in the same directory).

Expected behavior:
This shouldn't give not found error cause everything is fine to me.

🔧 Setup

Font: Inconsolata-Regular.ttf
Source: Google Fonts
OS: arch linux

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions