-
Notifications
You must be signed in to change notification settings - Fork 73
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
fix: Apply temporary logic to apply missing fonts in the current excalidraw package #56
Conversation
Thanks for the investigation! Yeah, let's wait for the upstream fix. Meanwhile, I manually deployed https://dai-shi.github.io/excalidraw-animate/ from this branch. |
Sounds good. Feel free to close this PR if it's no longer needed then |
Let's keep it open. |
@dai-shi Here is the updated version of this branch! I have changed;
Gif |
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.
You know what, let's merge this.
I'm confident that you will update this once Excalidraw package is updated, so in the meantime, let's go with this.
@kei95 Great work!
Feel free to send more PRs to improve things. |
probably so? @kei95 |
@dangehub That's right svg export is out of the scope for this PR |
I fixed the bug where other fonts didn't work when exporting to SVG. Additionally, my branch now supports third-party fonts (for compatibility with obsidian-excalidraw), maybe I can pr ? |
yeah, please open a pr. |
Issue
#55
What the change is about
It turned out that the
@excalidraw/excalidraw
package is way behind the released app version, hence the issue as the package doesn't know any added fonts that are present in the app. This PR adds fonts and logic to apply missing fonts and adopt newly added fonts so that this app can display any fonts in the current version of the excalidraw.@dai-shi This is a bit of an ugly patch-up to manually apply missing fonts in the package until we get the update from Excalidraw. It at least does its job to adopt the fonts but I'd say it's up to you to have this change meanwhile or wait for their update without it!
Screenshot / Gif
Base canvas in Excalidraw
Imported svg