-
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
Font isn't displaying correctly #55
Comments
I think Excalidraw changed something since they introduced new fonts. This should be fixed in excalidraw-animate, but I don't have time for now. |
It seems like all fonts exported in svgs are resulting in their default font, I locally updated the package to the latest var ( It could be an issue on Excalidraw's side rather than this app based on my little research. I'll try to post an issue in my spare time to their repo to see if I can get any insight from them. examples: |
With a little further research, it turned out that I've opened a PR for patch up meanwhile we wait for their release. We can remove the change altogether once the package with the latest release gets made but my change would fill in the gap meanwhile. |
#56 (comment) |
Thanks for looking into this! Currently I get the following error in the console when I import a file that contains just a bit of text and nothing else:
|
@kei95 any thoughts? |
@KevinMusgrave Hm I tried reproducing it in my env but couldn't. Would you mind sharing your @dai-shi Please check out the fix and deploy it when you get a chance so that whoever has the same issue will be unblocked 🙏 |
Done. |
Thanks @kei95, it's working better, but there are some edge cases which I don't fully understand. Here's my excalidraw drawing: And here's the animation: Screen.Recording.2024-08-20.at.12.56.33.PM.movHere's the excalidraw file:
|
@KevinMusgrave Thanks for the file! I was quite busy with my real-life situation so it took a bit to look into the issue, but I just pushed the fix to the branch so it shouldn't have a problem with the file anymore. The SVG converter function was acting interesting and I needed to change the way to check elements to apply the font. I just posted a gif in the PR so feel free to have a look into the updated version. @dai-shi Please check the change and deploy it if it looks good! |
@kei95 As we discussed, we should have an ultimate solution for this.
|
Probably not for this particular issue. We need the excalidraw team to publish their new version of the package as it contains the changes to update logic around new fonts which ultimately caused this issue. I'll open an issue there to see if that helps so that we can get rid of the hack once for all! |
Opened a discussion there. Let's hope that pushes their back toward the release 🙂 |
Here's what I have in excalidraw:
Here's what the final output of the animation looks like on https://dai-shi.github.io/excalidraw-animate/
The text in the animated version is not the hand-drawn style. I've tried it in Chrome and Firefox on Windows and MacOS.
The text was updated successfully, but these errors were encountered: