-
Notifications
You must be signed in to change notification settings - Fork 36
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
Fixed vertical aligment and underline alignment of nerd font #4
Conversation
Hi @matteematt, great work that really does improve the Nerd Font version. I'm currently using/testing it at work in my Terminal and Editor :-) There seems to be a problem with the ligatures though, especially with the ellipsis sign, as you correctly pointed out: I will try to created a version with reduced ligature width and upload it here. Which tools did you use to fix the spacing and underlining issue? If you did it with just the Nerd Font tools, can use paste your |
@cseelus Thanks for that, glad you are finding success with it! It is a shame about the ligatures, the Unfortunately I didn't do it a nice programatically way that we can easily reproduce, though if I explain what I did then maybe it'll help you realise what you need to set with the
|
@matteematt While testing the font, I found no problems so far, except for the Ligatures and some double wides, great work! I wanted to reproduce the steps you describe, but Step 3 "Select all and then vertically align them" is a bit unclear to me. Can you describe in more detail? |
@cseelus Thanks, glad you're seeing success with it too! Ok so when I open the font in fontforge it comes up with a gui that contains every symbolin the font. I select all (Ctrl-A or Cmd-A) and then right click on one of the symbols. On the dropdown menu that comes up there is an option for aligning the symbols Let me know if that makes sense, if not I will try to get you some screenshots of what I mean |
@cseelus Yeah sorry I was trying to remember the option off the top of my head. I have just double checked and the option you need is |
Could reproduce it, looks fine, applied to the normal font (w/o Nerd Icons). Still waiting for feedback from another user and another issue, but I've decided to merge your PR anyway, so your improvements to the font are generally available. Thanks again. |
@cseelus happy to help! At some point if I get time I'll try look into the ligatures issue |
❤️ |
Checking in the fonts that I have fixed #3
Before this PR the Font has an issue with vertical alignment of some symbols. Here are two images which show that issue.
On the yaml file the placeholder symbol for spaces are very obviously misalgined. So are the
.
and the#
in the haskell file (but you can notice the issue with other symbols too). Once this fix is applied these same two files look like:Once I was fixing the issue I noticed another issue - the underlining of the text didn't seem right, it was intersecting the text itself. See below
I was able to fix this too, so now the text with underline looks like this
I have since been able to test the font on the following systems and it works fine for what I need:
Arch Linux + Alacritty
MacOS + Alacritty + tmux
MacOS + Iterm2
However, one think I have noticed is that if you use ligatures, they still have the alignment issue unfortunately.
The issue is with all of the ligatures but I think it is especially noticeable on the
...
ligatureI personally don't use ligatures and from all my fixing yesterday I don't really know what to do to fix it. I don't know if it is worth merging this anyway and then if someone wants to take up the work to fix that in another PR then they can?