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

Support status code in UFO/Designspace #1402

Closed
wants to merge 5 commits into from

Conversation

ollimeier
Copy link
Collaborator

Fixes #1364

I extended the unittests and it looks like everything works already. Do I miss something?

@ollimeier
Copy link
Collaborator Author

OK, it's weird. The tests fail here, but not on my machine:

Screenshot 2024-05-28 at 16 17 48

@justvanrossum
Copy link
Collaborator

The issue is about the glyph status codes, not the status definitions. We probably need to write each source.customData to the corresponding glyph.lib.

@justvanrossum
Copy link
Collaborator

That's indeed weird: they also pass on my end.


async def test_copy_to_designspace_check_status_definitions(testFontraFont, newDSFont):
statusTestData = newStatusDefinitionsTestData()
await testFontraFont.putCustomData(statusTestData)
Copy link
Collaborator

Choose a reason for hiding this comment

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

Ah, it may be this: you should not write to testFontraFont.

Copy link
Collaborator

Choose a reason for hiding this comment

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

But: the status definitions are already tested, I'm not sure what you're trying to accomplish with these additional tests.

Copy link
Collaborator

Choose a reason for hiding this comment

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

Like, what do you miss from the existing test_statusFieldDefinitions test func?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

You're right. Thanks.

Copy link
Collaborator

Choose a reason for hiding this comment

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

Can you please also address my other questions in this comment thread? I think you have added mostly redundant code.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

My bad. Yes, it's redundant code. I will delete this PR and branch in a second and start from scratch. I miss understood the whole task. I am very thankful for your early feedback so I did not run even longer into the wrong direction.

@ollimeier
Copy link
Collaborator Author

I am closing this, because of I misunderstood the task.

@ollimeier ollimeier closed this May 28, 2024
@ollimeier ollimeier deleted the issue-1364-support-status-code-in-UFO-DS branch May 28, 2024 15:06
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.

[designspace backend] Support reading/writing the development status code to/from UFO/designspace
2 participants