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

[buildcff2vf] fails for project w/o explicit stat table #1281

Closed
frankrolf opened this issue Jan 19, 2021 · 0 comments · Fixed by #1283
Closed

[buildcff2vf] fails for project w/o explicit stat table #1281

frankrolf opened this issue Jan 19, 2021 · 0 comments · Fixed by #1283

Comments

@frankrolf
Copy link
Member

I have a FDK exercise with a very simple design space – weight axis 0 – 1000, single instance. No STAT-specific sidecar files.
Unfortunately, buildcff2vf fails with the following traceback:

Reading source fonts...
Building variable OTF (CFF2) font...
Validating STAT axis values...
Traceback (most recent call last):
  File "/Users/fgriessh/.pyenv/versions/3.7.4/bin/buildcff2vf", line 8, in <module>
    sys.exit(main())
  File "/Users/fgriessh/.pyenv/versions/3.7.4/lib/python3.7/site-packages/afdko/buildcff2vf.py", line 590, in main
    validate_stat_values(varFont)
  File "/Users/fgriessh/.pyenv/versions/3.7.4/lib/python3.7/site-packages/afdko/buildcff2vf.py", line 409, in validate_stat_values
    if hasattr(stat.table.AxisValueArray, "AxisValue"):
  File "/Users/fgriessh/.pyenv/versions/3.7.4/lib/python3.7/site-packages/fontTools/ttLib/tables/otBase.py", line 555, in __getattr__
    raise AttributeError(attr)
AttributeError: AxisValueArray

Test project here (just run buildcff2vf -d Exercise2.designspace):
cff2vf stat issue.zip

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