Skip to content

Failed custom build with featuresΒ #1654

@unennhexium

Description

@unennhexium

Trying to build custom font version using the following command:

./script/build.sh --family-name "Fira Code Custom" --weights "Regular,Medium,SemiBold,Bold" --features "cv06,cv12,cv14,ss04,cv18,cv31,ss02,ss09,cv25,cv26,cv32,cv28,ss06,ss07,ss10"

..., which produces the following output:

Creating font with these features: cv06 cv12 cv14 cv18 cv25 cv26 cv28 cv31 cv32 ss02 ss04 ss06 ss07 ss09 ss10
sed: -e expression #1, char 1: unknown command: `-'

... due to unfound name = calt line in previous expression using sed.

The error comes from ./script/bake_in_features.sh#L28. There is no line "name = calt;" in glyphs file, hence linenum=((linenum - 1)) is actually linenum=((0 - 1)), so sed -i -e '-1s@...@...@' uses invalid pattern.

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