-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
egui_extras: feature svg_text
#4659
Conversation
…ature. Updates resvg to version 0.42
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.
that allow(unused_mut) caught my eye but otherwise lgtm
edit: i should really read commit messages first, could you put in a comment explaining it?
commented! |
i think for demonstration purposes (and to make testing easier in the future), it'd be a good idea to add an example that shows text in svgs in action |
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.
I agree that an example would be nice, but LGTM anyway.
Would this text rendering work on web?
I was wondering the same thing shortly after making the PR 😅, I'm not great at web dev stuff but I'll take a look at it now and test some things.
after checking the web stuff I'll also look at how y'all test/write example code and see what I can do 😊 |
Short answer, no. |
Thanks for testing web. Please document your findings, i.e. document that the We should also figure out a solution to the duplicated dependencies. |
Disregard this PR (for now). Apologies for the delay in this, adhd is a bitch. But while looking at this again I realized that I mistakenly have it set up in a way that the system fonts are being loaded EVERY single time egui loads a new svg, instead it should be loaded once (during the install image loaders call likely), and that font database should be reused by the SVG loader. I also realized that I could likely solve the problem of no fonts on the web by allowing you to load/embed the font data directly (moving the problem onto the egui user). When I find the time to reimplement this in a better way I'll open a new PR and reference this one :) |
Added
svg_text
feature flag.Changed
0.37
to0.42
.