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

Arrow and comparison ligatures similar to Fira Code and JetBrains Mono #2671

Open
1 of 2 tasks
asdfwxyz opened this issue Feb 5, 2025 · 0 comments
Open
1 of 2 tasks

Comments

@asdfwxyz
Copy link

asdfwxyz commented Feb 5, 2025

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

This request is about the styles of arrowheads and the widths of comparison ligatures.

  1. Iosevka's ligation for -> and => essentially pushes together the two symbols without much modification. In particular, this preserves the angle in >. Fira Code and JetBrains Mono approach this a little bit differently, where the angle in the arrowhead of the ligature is wider than that of >. They also both have a simpler looking ligature for =>, closer to how one would draw it by hand.
  2. The ligature for <= in Iosevka is significantly wider than a single character width, which creates a discrepancy between strict and nonstrict inequality symbols. Fira Code and JetBrains Mono solve this issue by rendering the symbol right in the middle of two adjacent characters. To be a bit more precise, if we view | _ _ | _ _ | as the space for two adjacent characters, then they draw the symbol as in | _ < | = _ |. This way, it still appears as having the width of a single character, but with some additional space around it.

I think in both cases the other fonts' approaches are aesthetically more pleasing than Iosevka's (though this is completely subjective). Would you consider adding variants for those ligatures that are modeled after their approach?

Thank you for all of your work on Iosevka.

EDIT: Here are some pictures of the arrows and the inequality sign from Fira Code.

  • Note the wide angle of the arrowheads: Image

  • Iosevka for comparison: Image

  • The glyph on top is the ligature for ==. Notice the alignment of the ligature for <= in relation to ==. Image

  • Iosevka for comparison: Image

  • In addition, here are the angles used in LaTeX's default font Computer Modern for those glyphs (note the angles):

Image
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

1 participant