Skip to content

Draw SVG texts with iced fontdb - #3393

Open
OlivierLemoine wants to merge 4 commits into
iced-rs:masterfrom
OlivierLemoine:svg-renderer-with-iced-fontdb
Open

Draw SVG texts with iced fontdb#3393
OlivierLemoine wants to merge 4 commits into
iced-rs:masterfrom
OlivierLemoine:svg-renderer-with-iced-fontdb

Conversation

@OlivierLemoine

Copy link
Copy Markdown

Currently, iced does not render texts in svg with fonts loaded with iced::Application::font(), but only with system fonts. This means that on the web, there is no text at all.

This PR uses iced's font_system to load the fonts and thus, sharing the custom ones with the svg renderer. This does work on the web as well.

However, the feature iced_renderer/svg-text is needed, and I don't know if the right approach is to make it dependent on svg or create a new one entirely.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant