Hack icon indicating copy to clipboard operation
Hack copied to clipboard

Missing glyphs on Windows PowerShell/Command Prompt/WSL

Open leesoh opened this issue 7 years ago • 35 comments

Hi there,

First off thanks for the beautiful font! Second, it looks like some glyphs are missing in WSL. Here's a screenshot of a repo:

missing_glyph

Also missing in vim: image

I've tried both running the installer, rebooting, and rerunning the installer as well as uninstalling it completely, rebooting, and then reinstalling it. Still no love.

TODO:

  • [ ] add U+2713 '✓'
  • [ ] add U+2716 '✖'
  • [ ] add U+2717 '✗'

leesoh avatar Jan 13 '18 13:01 leesoh

Thanks for the report Liam. Can I ask you to confirm that this is with the current version of the Windows installer and let us know what glyphs you are expecting to see in those blank areas (ideally with Unicode code points if they are not standard alphanumeric glyphs)?

chrissimpkins avatar Jan 13 '18 15:01 chrissimpkins

You can use this tool to identify the Unicode code points https://github.com/source-foundry/uni or refer to the Unicode charts on the web. If WSL is using glyphs that are not defined by the Unicode standard in the same fashion as the Powerline project, this could be the source of the problem. I am not familiar with WSL and what you are expecting to see there.

chrissimpkins avatar Jan 13 '18 15:01 chrissimpkins

Sorry, guess that would help. I'm just running out - I'll have to dig up the unicode characters when I get back. Here are some screenshots though:

image

image

Installer version is 1.5

leesoh avatar Jan 13 '18 15:01 leesoh

I should have also mentioned that the X shows up fine when using Deja Vu Sans Mono for Powerline. No luck on the vim things though.

From my screenshots, the ✗ is http://www.fileformat.info/info/unicode/char/2717/index.htm

The ☰is https://codepoints.net/U+2630?lang=en

The ☲ is https://codepoints.net/U+2632?lang=en

None of the above appear to work in a regular PowerShell/CMD prompt either, although they seem to work in Notepad.

leesoh avatar Jan 13 '18 17:01 leesoh

@iamjamestl are the stacked horizontal line glyphs still available in your repo? Possible to help him build these into his set?

@leesoh We may not have included the 'x' shaped glyph from the DejaVu set. Will check. Thanks for posting the additional info!

chrissimpkins avatar Jan 13 '18 18:01 chrissimpkins

For my information as I research this issue:

CHECK MARK (U+2713) ✓
BALLOT X (U+2717)  ✗

chrissimpkins avatar Jan 15 '18 15:01 chrissimpkins

✖ (U+2716) is missing from mine also build (1709) 16299.192

Sparticuz avatar Jan 15 '18 16:01 Sparticuz

@Sparticuz Is there a terminal UI style application that uses that glyph on your platform or are you commenting about the glyphs in this code range with check mark and x mark semantics? Trying to understand the various Powerline like derivatives out there and what type of glyph support is necessary for them.

chrissimpkins avatar Jan 16 '18 14:01 chrissimpkins

It's from https://stylelint.io/.

DejaVu sans mono image

Hack image

(I'm in normal cmd.exe/bash.exe)

Sparticuz avatar Jan 16 '18 14:01 Sparticuz

@Sparticuz ty!

We should use this thread as an opportunity to gather these terminal UI style glyphs that are in common use out there. Anyone aware of others that would be useful to have in the sets?

chrissimpkins avatar Jan 16 '18 15:01 chrissimpkins

@leesoh @Sparticuz

I can confirm that we do not have the following glyphs U+2630, U+2632. You may need to reach out to @iamjamestl directly to discuss these. He designed the glyphs in this range for a PR but withdrew the PR with the explantation here https://github.com/source-foundry/Hack/pull/236#issuecomment-345040104

The following:

U+2713 '✓'
U+2716 '✖'
U+2717 '✗'

are all glyphs that are not currently included in the Hack sets. We can definitely consider adding them to support this request. I've updated the OP with a TODO list for these glyphs. (cc @jublo if you are interested in designing these)

chrissimpkins avatar Jan 22 '18 02:01 chrissimpkins

I am indeed using PowerLine. The glyph mentioned in the comment did work, but I'm still missing others. I'll do some more troubleshooting, but they do seem problematic so I understand not wanting to incorporate them in Hack.

Thanks for all the help with this!

leesoh avatar Jan 22 '18 17:01 leesoh

@leesoh Do you happen to have a link to all of the default UI glyphs that are included in Powerline? They include non-Unicode defined project specific glyphs, but it sounds like there are glyphs from the non-Latin sets of the Unicode standard too. It would be helpful to know about all of the glyphs that are displayed to users to make sure that we cover this to the degree that we can.

chrissimpkins avatar Jan 22 '18 19:01 chrissimpkins

This work? https://github.com/ryanoasis/nerd-fonts

leesoh avatar Jan 22 '18 19:01 leesoh

Wtf! Are people actually using trailing flames in their terminal UI? :)

https://github.com/ryanoasis/nerd-fonts#powerline-extra-symbols

screenshot at jan 22 16-17-13

This doesn't seem to include any of the Unicode defined code points that we discussed above.

chrissimpkins avatar Jan 22 '18 21:01 chrissimpkins

and legos...

chrissimpkins avatar Jan 22 '18 21:01 chrissimpkins

If you build it they will come?

leesoh avatar Jan 22 '18 21:01 leesoh

Sorry that was insensitive of me. Clearly, we will not be getting feedback from the flame/lego crowd with those comments. :) If you are using any the above, let's see some SS. I want to see how those flames are being used.

chrissimpkins avatar Jan 22 '18 21:01 chrissimpkins

This is where I see most of the missing bits (vim-airline): https://2.bp.blogspot.com/-LChtf4Y3trI/V0f3f8uqFaI/AAAAAAAADJM/S1NeL3Ihbs8rHPRt91g0FeBBNQM2pUIoACLcB/w1200-h630-p-k-no-nu/rect4144.png

Here's your flaming lego: https://ryanlmcintyre.com/img/portfolio/powerline-extra-symbols.png

leesoh avatar Jan 22 '18 21:01 leesoh

OK I take it back. Does Nerd Fonts patch in airline glyphs? Might be something to approach Ryan about. Would be useful to other faces out there through his patching tool.

chrissimpkins avatar Jan 22 '18 21:01 chrissimpkins

Yeah, most of the ones that I've noticed missing are in Powerline Extra Symbols.

leesoh avatar Jan 22 '18 22:01 leesoh

@leesoh Liam do you see a role for including these symbols here when @ryanoasis already patches them in on the downstream Nerd Fonts package? Ryan has been keeping up with updates here and offers a patching script to patch these glyphs in yourself if he misses a release or two along the way and you want to use the changes. Can you let me know what we are missing c/w what he offers there?

chrissimpkins avatar Mar 21 '18 21:03 chrissimpkins

@ryanoasis Ryan if we are missing some of the requested glyphs here, would you be willing to add them to your patching script and support them in the Nerd Fonts builds?

cc: @leesoh

chrissimpkins avatar Mar 21 '18 21:03 chrissimpkins

Sure. I am always willing to add glyphs. :smile: Cannot give any ETA though.

We've got some issues with glyphs that I am trying to solve. Nothing Hack specific. Effecting all fonts

I'll make an issue for this if I remember and if not someone feel free to open.

ryanoasis avatar Mar 21 '18 22:03 ryanoasis

Thanks Ryan! Liam, let us know how you would like to address this. Perhaps you are using a package manager and glyphs like the X and checks are better here? Will wait to hear back from you.

chrissimpkins avatar Mar 22 '18 00:03 chrissimpkins

@ryanoasis are you able to confirm that you do not currently include the three glyphs that are included as checkboxes in the OP?

chrissimpkins avatar Mar 22 '18 00:03 chrissimpkins

I'll have to check to be completely sure but we don't currently add any sort of glyphs ad hoc. Only ones from sets such as Font Awesome, Octicons

ryanoasis avatar Mar 22 '18 00:03 ryanoasis

@chrissimpkins Either works for my purposes. If you think it's a better fit elsewhere, no worries. Thanks a lot for following up :)

leesoh avatar Mar 22 '18 14:03 leesoh

@leesoh I think the x style glyphs and check are appropriate here. If Ryan happens to get to them before we do, then we can link to the patched versions for those who need them. We will try to make this happen. For the extended Powerline glyphs, I think that Ryan's project is the best source for these patches. I've worked closely with him on the hints following the patching process and there should not be a significant difference in renders with the downstream builds vs. those upstream. If there are, please let us know.

As a side note, @ryanoasis one potential issue for those who use Hack and want your patches is that they get the fonts through package managers. Are you packaging the Nerd Fonts builds anywhere (Homebrew, Linux distros, etc)?

chrissimpkins avatar Mar 22 '18 16:03 chrissimpkins

@chrissimpkins Yes actually!

There are Homebrew Fonts and AUR Packages

ryanoasis avatar Mar 22 '18 21:03 ryanoasis