-
Notifications
You must be signed in to change notification settings - Fork 94
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feature files missing in newest fontmake #1096
Comments
I don't think we changed anything about that recently. |
The structure looks like this:
inside If I go back to my old venv (fontmake version 2.0) from when I last built from these sources I can generate fonts without issue. So that's what I'll do for now. |
The UFO spec specifies that includes should be relative to the UFO path not the features.fea file. You need to drop the leading |
no, the include path is correct. Notice that the source1.ufo is in turn inside a subfolder 1-drawing, which is a sibling of the |
I can not reproduce the issue using fontmake 3.9.0 and the following test file (see attached zip): $ tree ufo_fea_include_test/
ufo_fea_include_test/
├── 1-drawing
│ └── source1.ufo
│ ├── features.fea
│ ├── fontinfo.plist
│ ├── glyphs
│ │ ├── A_.glif
│ │ ├── contents.plist
│ │ └── layerinfo.plist
│ ├── layercontents.plist
│ ├── lib.plist
│ └── metainfo.plist
├── designspace
│ └── MyTypeface.designspace
└── fea
└── MyFeatures.fea
6 directories, 10 files When I run |
Thank you for sending over the test file. Hmm, your test file worked for me too in both the old and new versions of fontmake. Now I have no idea what causing the problem with my files in the newer fontmake. When I have time I might try to make a bunch of VENVs with different versions of fontmake to see where the problem starts happening for my files. |
It’d be great if you could reduce it to a minimal reproducer that could be shared in here. |
Just hit this error when building with the latest fontmake 3.9.0
Compiling UFO failed: <features>:1:8: The following feature file should be included but cannot be found: ../fea/MyFeatures.fea
I'm not sure where this got broken, but in previous versions this was not an issue. FWIW, my .ufo files are in a folder called
1-drawing
and my feature file:MyFeatures.fea
is in a parallel folder calledfea
, and in each .ufo file I haveinclude(../fea/MyFeatures.fea);
Not sure if it matters, but my designspace filemyTypeface.designspace
is in another parallel folder calleddesignspace
. All of these folder (1-drawing
,fea
, anddesignspace
) are in the same enclosing folder. So I can't figure out where fontmake is expecting the features to be located now.If I generate from RoboFont, my features are included without issue. Same when I preview my features using the FeaturePreview extension. I would expect fontmake to match this behavior.
This used to work in fontmake 2x, I'm not sure where this changed. This is a bug, right?
The text was updated successfully, but these errors were encountered: