be5invis / Iosevka

Versatile typeface for code, from code.
http://be5invis.github.io/Iosevka
SIL Open Font License 1.1
18.69k stars 563 forks source link

Tags-like appearance for [INFO] [DEBUG] [TODO], similar to Maple Mono #2250

Open torindan opened 3 months ago

torindan commented 3 months ago

I understand that it's mostly eye candy, but it would be nice

Screenshot 2024-03-22 at 10 32 03
be5invis commented 3 months ago

This will, well, introduce many new glyphs... Impact will be thousands I think.

torindan commented 3 months ago

I might be saying stupid things here, but bear with me:

The feature might not be for everyone as no one wants array[i] to be rendered as array and i rendered as tag

be5invis commented 3 months ago

Well. Generating glyphs are easy, but it will produce over 1000 new glyphs into the font. Iosevka is already has 40,379 glyphs...

be5invis commented 3 months ago

And, guess what, the "negative circled/boxed letters/digits" is one of the biggest source of these glyph count. The glyph "❿" itself will produce around 500 glyphs.

torindan commented 3 months ago

whoa...i didn't know that...

feel free to drop the issue in backlog...and never see it again. iosevka is still my preferred font, appreciate all the effort

Logo121 commented 2 months ago

And, guess what, the "negative circled/boxed letters/digits" is one of the biggest source of these glyph count. The glyph "❿" itself will produce around 500 glyphs.

I suppose what torindan meant is to substitute each character individually, like the tone modifiers ˥˦˧˨˩ which only change form depending on the character after (or before?) it instead of requiring all combination of 5^N tone combinations, so the number of variants from multiple characters won't really stack like or 🆜 does.

If we restrict the range of characters that can undergo a tag-like substitution to just the capital (ASCII) alphabet, then there would probably be no more than 300 new glyphs.

Or in the worst case, we can just make it opt-in or even incompatible with CV/Texture Healing on build...

Unless such kind of substitution is impossible, then nvm.

be5invis commented 2 months ago

@Logo121 The 1000 gid count is estimated using individual substitution already. Otherwise it might be over 10K...