Closed ahaoboy closed 1 month ago
FiraCodeNerdFontMono-Regular.ttf
Wow, this makes a huge difference. One small file went from 91.6kb to 38.3kb, then with -c went to 17.4kb. Nice work!
Wow, this makes a huge difference. One small file went from 91.6kb to 38.3kb, then with -c went to 17.4kb. Nice work!
However, due to SVG font rendering issues, you may need to use the mono font, otherwise it will cause alignment issues. This problem has not been found on HTML yet.
Wow, this makes a huge difference. One small file went from 91.6kb to 38.3kb, then with -c went to 17.4kb. Nice work!
If you are very concerned about the size, it is recommended to use html, which is much smaller than svg and will not have text rendering problems.
What we're really trying to do is create a preview of all nushell themes and store them in a markdown file. I know md has limited html support, but I'll have to see what that is exactly. Our current idea is to put a svg in the markdown. I'm not sure how we'll get there from here because themes by their nature change all/most of the colors.
It looks like some of the optimizations could make html even smaller. There are a lot of css colors in that file.
close: https://github.com/ahaoboy/ansi2/issues/10