Data Structure: reduce redundancy when storing fonts #12261
Labels
Group: Fonts
P2
Should do soon
Package: Story Editor
/packages/story-editor
Type: Code Quality
Things that need a refactor, rewrite or just some good old developer ❤️
Type: Enhancement
New feature or improvement of an existing feature
Feature Description
This is a follow-up to #12131.
Right now when adding 10 text elements all with the same font, there will be 10 font objects being stored, all with the same information. That's very redundant.
Instead of this, consider storing all existing fonts at the story level instead of on each element to reduce redundancy.
Add data migration.
Alternatives Considered
Additional Context
The text was updated successfully, but these errors were encountered: