Weird characters when running ZSH on Hyper #1171

Closed
enriquemorenotent opened this Issue Dec 13, 2016 · 9 comments

Comments

4 participants

I just installed Hyper 1.0. When I open Hyper and activate zsh as my shell, I get this weird characters.

If I open zsh in another terminal, for instance Terminator, they all look alright.

screenshot from 2016-12-13 10-19-46

Collaborator

albinekb commented Dec 13, 2016

Looks like you need to set your fontFamily to a font that's powerline-patched
here is info on how to set your fontFamily https://hyper.is/#cfg

That should do the trick!

enriquemorenotent commented Dec 13, 2016

The solution to my problem was to add this line on the settings:
fontFamily: '"Droid Sans Mono for powerline", Menlo, "DejaVu Sans Mono", "Lucida Console", monospace',

I am not sure if this had an effect on it working or not, but before doing that I tried other things like installing this fonts (https://github.com/powerline/fonts) or running sudo apt-get install fonts-powerline

Contributor

L-A commented Dec 13, 2016

For posterity, here are the necessary steps:

What you need is indeed any Powerline-compatible font. It must be installed (any way you like, Font Book is fine).

Then it must be the active font-face in Hyper.

If the font is named "Droid Sans Mono For Powerline", it has to be there completely, since "for powerline" is part of the name, not a suffix of sorts.

Your setting is 👍

That's it!

What is weird is that when I set the font to "Ubuntu Mono" in the default system terminal, the characters look fine, but when I set it on Hyper, they do not.

I am not sure if there is some weird wiring going on under the hood, but the I have never had this trouble with any other terminal (I have tried "Terminator" and "Cool Retro Term"). They all could show the characters without any trouble.

Maybe Hyper needs to do some extra automatic configuration?

softmonkeyjapan commented Dec 14, 2016

Same problem here. I'm using the Menlo Regular for Powerline font on my iTerm2 with zsh and it display correctly:

screen shot 2016-12-15 at 5 30 59 am

I have change the font on ~/.hyper.js configuration file:
screen shot 2016-12-15 at 5 32 56 am

But the display is still broken:
screen shot 2016-12-15 at 5 34 09 am

Will try dig into the problem a bit more later and see how we can fix that. In the meantime, if anyone has a valid solution, I'm in.

Ok so I just changed the font to another Powerline font (I'm using Inconsolata-g for Powerline instead of Menlo Regular for Powerline) and seems to work fine now:
screen shot 2016-12-15 at 5 45 39 am

Contributor

L-A commented Dec 14, 2016

@softmonkeyjapan What happens if you name it "Menlo for Powerline"?

The regular weight doesn't have "Regular" in its name.

Yep indeed it works fine. The Regular needed to be removed. It works fine thanks for the feedback.

For me "Menlo for Powerline" does not give me any result :/

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