Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # 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

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.

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants