Skip to content
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

Syntax errors in features? #62

Open
ryanbugden opened this issue Feb 20, 2024 · 1 comment
Open

Syntax errors in features? #62

ryanbugden opened this issue Feb 20, 2024 · 1 comment

Comments

@ryanbugden
Copy link

There seem to be some errors and/or redundancies that, if one would go to generate again, makeotf complains about.

import extractor

path = 'SourceSerifPro-Regular.otf'

ufo = RFont(showInterface=True)
extractor.extractUFO(path, ufo)

gen = ufo.generate(
    "otfcff", 
    path.replace(".otf", "-2.otf"),
    )
    
print(gen)

e.g. the GDEF
syntax error at "]" [features 7]

e.g. redundancies

feature sinf {
    script latn;
    language AZE;
            script latn;
        language AZE;
        lookup SingleSubstitution12;

} sinf;

feature sinf {
    script latn;
    language AZE;
            script latn;
        language AZE;
        lookup SingleSubstitution12;

} sinf;
@typemytype
Copy link
Member

extractor is not made to roundtrip...

how ever those features often cause problems

extractor uses https://github.com/simoncozens/fontFeatures to extract features

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants