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

[tx] Don't parse non-FDArray array of dictionaries in fontinfo.plist #1478

Merged
merged 4 commits into from
Mar 9, 2022

Conversation

kaydeearts
Copy link
Collaborator

@kaydeearts kaydeearts commented Mar 8, 2022

Masataka reported that he found an error when using mergefonts. The error is actually in tx.
Because the UFO was exported from Glyphs3, there was some additional data within fontinfo.plist that was accidentally parsed as FDArray.

For now, I've added a parsingFDArray bool value that is set to true only if the postscriptFDArray key was seen when parsing an array of font dictionaries. This is a temporary solution, since the switch to libxml2 parsing will have a more elegant way of dealing with this.

We need to decide if it's necessary to start storing this kind of additional data from Glyphs 3 and other apps in the UFO when running it through our tools.

@kaydeearts kaydeearts changed the title [tx] Fix for parsing fontinfo.plist [tx] Don't parse non-FDArray array of dictionaries in fontinfo.plist Mar 8, 2022
Copy link
Collaborator

@josh-hadley josh-hadley left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good (and I'm looking forward to a more permanent solution with libxml 😄 )

@kaydeearts kaydeearts merged commit dda87ee into develop Mar 9, 2022
@kaydeearts kaydeearts deleted the kd-mergefonts-fail branch March 9, 2022 04:37
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

Successfully merging this pull request may close these issues.

2 participants