Hyper: Weird characters when running ZSH on Hyper

Created on 13 Dec 2016  路  10Comments  路  Source: vercel/hyper

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

馃憖 Awaiting Response

Most helpful comment

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

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

All 10 comments

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!

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

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?

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

@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 :/

Well, I'm having same issue. I tried to install other fonts, same result.

screen shot 2018-08-05 at 4 42 41 pm

Was this page helpful?
0 / 5 - 0 ratings

Related issues

aem picture aem  路  3Comments

juicygoose picture juicygoose  路  3Comments

cilice picture cilice  路  3Comments

eoinmurray picture eoinmurray  路  3Comments

ConstantinChirila picture ConstantinChirila  路  3Comments