Skip to content

[ufo] Don't unnecessarily write UFO's metainfo.plist when we're only reading#2505

Merged
justvanrossum merged 8 commits intomainfrom
ufo-reader-writer-no-write-on-read
Mar 21, 2026
Merged

[ufo] Don't unnecessarily write UFO's metainfo.plist when we're only reading#2505
justvanrossum merged 8 commits intomainfrom
ufo-reader-writer-no-write-on-read

Conversation

@justvanrossum
Copy link
Copy Markdown
Member

This fixes #2504.

Instead of using the multipurpose UFOReaderWriter (alias for UFOWriter), use UFOReader as long a we are not writing. This required reworking how readers/writers are cached, as well as UFO GlyphSet objects. Typechecking helped to ensure this is done correctly.

@justvanrossum justvanrossum marked this pull request as ready for review March 21, 2026 13:38
@justvanrossum justvanrossum merged commit 81bca2a into main Mar 21, 2026
4 checks passed
@justvanrossum justvanrossum deleted the ufo-reader-writer-no-write-on-read branch March 21, 2026 13:38
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/ufo] Files should not be written when we are just reading

1 participant