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

fontmake: Compiling UFO failed #5195

Open
samiel60 opened this issue Feb 5, 2023 · 1 comment
Open

fontmake: Compiling UFO failed #5195

samiel60 opened this issue Feb 5, 2023 · 1 comment

Comments

@samiel60
Copy link

samiel60 commented Feb 5, 2023

I'm using last AppImage (FontForge-2023-01-18-4f4907d-x86_64.AppImage) on Debian Testing.
I created a font in UFO3 format and then converted it with FontMake, but I get an error message:

samiel@debian:~$ fontmake -u ContemporaryGaramond-Italic.ufo/
INFO:fontmake.font_project:Building OTF for Contemporary Garamond-Italic
INFO:ufo2ft:Pre-processing glyphs
INFO:ufo2ft.filters:Running DecomposeComponentsFilter on ContemporaryGaramond-Italic
INFO:ufo2ft.filters:Running RemoveOverlapsFilter on ContemporaryGaramond-Italic
INFO:ufo2ft:Building OpenType tables
fontmake: Error: In 'ContemporaryGaramond-Italic.ufo': Compiling UFO failed: ContemporaryGaramond-Italic.ufo/features.fea:1135:2: Script statements are not allowed within "feature aalt"

In fact, in the features.fea file I find:

feature aalt {

  DFLT scripts;
      language dflt ;
       lookup aaltAccessAllAlternateslookup0;
       lookup aaltAccessAllAlternateslookup1;

  greek script;
      language dflt ;
       lookup aaltAccessAllAlternateslookup0;
       lookup aaltAccessAllAlternateslookup1;

  script latn;
      language dflt ;
       lookup aaltAccessAllAlternateslookup0;
       lookup aaltAccessAllAlternateslookup1;
      language AZE exclude_dflt;
       lookup aaltAccessAllAlternateslookup0;
       lookup aaltAccessAllAlternateslookup1;
      CRT language exclude_dflt;
       lookup aaltAccessAllAlternateslookup0;
       lookup aaltAccessAllAlternateslookup1;
      language FRA exclude_dflt;
       lookup aaltAccessAllAlternateslookup0;
       lookup aaltAccessAllAlternateslookup1;
      language ITA exclude_dflt;
       lookup aaltAccessAllAlternateslookup0;
       lookup aaltAccessAllAlternateslookup1;
      MOL language exclude_dflt;
       lookup aaltAccessAllAlternateslookup0;
       lookup aaltAccessAllAlternateslookup1;
      ROM language exclude_dflt;
       lookup aaltAccessAllAlternateslookup0;
       lookup aaltAccessAllAlternateslookup1;
      TRK language exclude_dflt;
       lookup aaltAccessAllAlternateslookup0;
       lookup aaltAccessAllAlternateslookup1;
} alt;

But the entry seems incorrect based on the Adobe specification (https://adobe-type-tools.github.io/afdko/OpenTypeFeatureFileSpecification.html#8.a), which reads: «The following are not allowed in the aalt feature definition: script, language, lookupflag, and subtable statements; named lookup blocks and lookup reference statements. The aalt lookups will be created with LookupFlag 0.»
Am I doing something wrong, or is the export from FF in UFO3 faulty?
Thank you
m

@samiel60
Copy link
Author

samiel60 commented Feb 5, 2023

Solution: manually edit the features.fea file by deleting all lines except
`feature aalt {

  lookup aaltAccessAllAlternateslookup0;

  lookup aaltAccessAllAlternateslookup1;

} aalt;`

But maybe the behavior of FontForge is not correct here, in creating the features file (or the lookup),
for it doesn't seem to be Adobe compliant.

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

1 participant