Skip to content

Issue parsing font info lib item in instance #81

@ryanbugden

Description

@ryanbugden

With the following instance lib...

      <lib>
        <dict>
          <key>public.fontInfo</key>
          <dict>
            <key>versionMajor</key>
            <integer>1</integer>
            <key>versionMinor</key>
            <integer>3</integer>
          </dict>
        </dict>
      </lib>

I get this error when trying to generate UFOs

  File "/Applications/RoboFont.app/Contents/Resources/lib/python3.12/ufoProcessor/ufoOperator.py", line 942, in generateUFOs
ValueError: too many values to unpack (expected 2)

The line seems to be here:

for infoDict in [
self.doc.lib.get("public.fontInfo", dict()),
instanceDescriptor.lib.get("public.fontInfo", dict())
]:
for key, value in infoDict:
setattr(font.info, key, value)

If I remove the lib, the error disappears.

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