Skip to content

[builder] expandFeaturesToInstances not working #1039

@arrowtype

Description

@arrowtype

In #558, it was reported that features weren’t expanding into instances, which meant that feature includes weren’t working. This seems to have been closed by #617.

However, I’m now experiencing the original issue – even when I add expandFeaturesToInstances: true to my config.

If I dig into the instance_ufos folder, then into a JSON UFO, it starts with this:

{"features":"include(fea/Familyname.fea);"

...where I would expect to see the full features, expanded, rather than the original include() statement.

The build crashes with the error, when attempting to build static OTFs and TTFs:

fontmake: Error: Compiling UFO failed: <features>:1:8: The following feature file should be included but cannot be found: fea/Familyname.fea

However, if I do run fontmake directly on the same designspace, with the arg --expand-features-to-instances, it works just fine.

Am I missing something, or could this be a regression?

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