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

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

Open
2 tasks
torindan opened this issue Mar 22, 2024 · 7 comments
Open
2 tasks

Comments

@torindan
Copy link

torindan commented Mar 22, 2024

  • A programming language requires this ligation. Provide the information below.
  • This ligation is implemented in other programming fonts. Provide samples below.

  • AFAIK, no programming language requires it, but it looks nice in logs, or when editing some markdown status
  • Maple Mono, and maybe Fira Code

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

Screenshot 2024-03-22 at 10 32 03
@be5invis
Copy link
Owner

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

@torindan
Copy link
Author

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

  • the glyphs are already there, there are double width stuff like 🅸🅽🅵🅾
  • so if it is possible to generate those as single width (or somehow reverse background/foreground for usual A-Z) and display them without spaces between characters, that might be enough + a semireversed version of '[' ']' with coloured inside
  • and then just add a ligature rule for few strings ((9 from screenshot + '[todo]') * 2 for uppercase = 20, or configurable list of words) to use those reversed glyphs instead of regular glyphs

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

@be5invis
Copy link
Owner

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

@be5invis
Copy link
Owner

be5invis commented Mar 22, 2024

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
Copy link
Author

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

@be5invis be5invis added this to the Backlog milestone Mar 22, 2024
@Logo121
Copy link
Contributor

Logo121 commented Apr 20, 2024

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
Copy link
Owner

be5invis commented Apr 20, 2024

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

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

No branches or pull requests

3 participants