-
-
Notifications
You must be signed in to change notification settings - Fork 395
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
feat(edgeless): support more fonts in canvas text #5339
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
1 Ignored Deployment
|
Looks good! @Flrande. However, there're some issues of UI
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What will happen when opening existing canvas text element? I'd consider losing stying info is acceptable as long as no content lost or migration required.
If migration can run normally, the original style will be preserved. Do we need to add a fallback logic for unexecuted migration? (to maintain normal rendering at the cost of losing the style) |
I don't think we should do migration for this kind of UX upgrade. Given the status in AFFiNE, simply wiping away existing style sounds better as a tradeoff. |
If we simply remove the original styles, it means that In short, I understand your concerns about the breaking changes to the data structure, but I believe it is different from the breaking changes of the AFFiNE GUID. Its impact is limited, and it will not lead to widespread rendering failures. Moreover, we will undergo multiple rounds of testing before releasing it. I think we don’t need to be so conservative at this point. |
I believe in this case, having the application layer compatible with legacy docs missing these new fields should be the expected tradeoff. Given the cost scheduling and validating the migration, I am sure that text style does NOT deserve a breaking change. Migration should NOT happen more often than half a year. And after all, due to the fragmented nature of local-first app, I even have the feeling that we will have to stop introducing ANY breaking changes - there is a famous slogan called "don't break the web", and the whole web APIs doesn't introduce breaking changes over DECADES. |
It sounds like taking a cold breath in.🥶 |
@Flrande no worries, we'll figure out alternatives preventing breaking changes :) Current breaking changes will lead to a new CRDT workspace, which could be still be the escape hatch, but I'd consider this to be an exclusive feature for AFFiNE Cloud. |
Close #5313
Breaking change in
surface-model
:bold
->fontWeight
,italic
->fontStyle
By default, font files are loaded through CDN. If you want to reference local font files, you can modify this behaviour by overriding
page-service
(similar to #5158).