Skip to content

Read and write STAT axis values (OTVAR) issue #372

@clauseggers

Description

@clauseggers

I get this error

🔢 Axis Values Report:
- OTVAR suffixes: ttf
- OTVAR export path: /Path …

-------------------------------------------------------------------------------------
📄Processing: /Path …
-------------------------------------------------------------------------------------

🗜️ Found ‘Axis Values’ parameters: overwriting STAT table
- wght axis: AxisNameID 256, AxisOrdering 0
- opsz axis: AxisNameID 257, AxisOrdering 1
- ital axis: AxisNameID 2, AxisOrdering 2

👨🏼‍🏫 Parsing parameter value: wght; 400.0>700.0=Regular*, 600.0=SemiBold, 700.0=Bold, 900.0=Black
- AxisValue wght ‘Regular’, Format 3, AxisIndex 0, ValueNameID 378, Flags 2, Value 400.0, LinkedValue 700.0
- AxisValue wght ‘SemiBold’, Format 1, AxisIndex 0, ValueNameID 381, Flags 0, Value 600.0
- AxisValue wght ‘Bold’, Format 1, AxisIndex 0, ValueNameID 382, Flags 0, Value 700.0
- AxisValue wght ‘Black’, Format 1, AxisIndex 0, ValueNameID 383, Flags 0, Value 900.0

👨🏼‍🏫 Parsing parameter value: ital; 1=Italic
- AxisValue ital ‘Italic’, Format 1, AxisIndex 2, ValueNameID 2, Flags 0, Value 1.0

✅ Overwriting STAT AxisValues with 5 entries...
💾 Saved file: FONTFILENAME.ttf
Traceback (most recent call last):
  File "Read and Write Axis Values.py", line 241
    font.parent.windowController().showFontInfoWindowWithTabSelected_(2)
    ^^^^^^^^^^^
AttributeError: 'TTFont' object has no attribute 'parent'

I run the Read and write STAT axis values (OTVAR) script after having run Instance Cooker, but it fails and does not write the custom parameters.

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