Skip to content
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

Use icon-font instead of svg in html outputs #2505

Closed
meftunca opened this issue Feb 22, 2024 · 1 comment
Closed

Use icon-font instead of svg in html outputs #2505

meftunca opened this issue Feb 22, 2024 · 1 comment
Labels
enhancement Improved functionality

Comments

@meftunca
Copy link

Search Terms

reduce svg size

Problem

In the html output, svg codes make up 40%-60% of the total file size.

Suggested Solution

It might be a better solution to use icon font instead.

@meftunca meftunca added the enhancement Improved functionality label Feb 22, 2024
@Gerrit0
Copy link
Collaborator

Gerrit0 commented Feb 23, 2024

From a bit of research, it looks like an icon font is not a possible solution here. Icon fonts are monocolor, but they really need to be multicolored to be recognizable.

I have a possible partial resolution for this from #2335, where the <use> element references an external file. This doesn't work when the file is loaded locally, however, due to CORS. Losing support for file:// is something I really don't want.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement Improved functionality
Projects
None yet
Development

No branches or pull requests

2 participants