Skip to content

Powerline fonts not working anymore #3343

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

Closed
2 tasks done
alcappello opened this issue Dec 17, 2018 · 17 comments
Closed
2 tasks done

Powerline fonts not working anymore #3343

alcappello opened this issue Dec 17, 2018 · 17 comments

Comments

@alcappello
Copy link

alcappello commented Dec 17, 2018

  • I am on the latest Hyper.app version
  • I have searched the issues of this repo and believe that this is not a duplicate

Issue

I use Fish Shell with Hyper and used to have Hack as Powerline font to display special glyphs. It worked just fine in v2.0, but it seems to be broken on v2.1.0. I tried other Powerline fonts (Fira Code, Roboto Mono, Go Mono) without results. It seems to work on Terminal, here's a couple of screenshots to see the difference:

screenshot 2018-12-17 at 21 15 44

screenshot 2018-12-17 at 21 15 27

@saminnet
Copy link

I have the same issue!

@RXminuS
Copy link

RXminuS commented Dec 25, 2018

Any idea of where this issue might have popped up? I tried going back through the changelog but nothing popped out to me.

@batjko
Copy link

batjko commented Jan 3, 2019

So, I installed hyper 2 just now from scratch, then changed the font in preferences (to 'Source Code pro for Powerline') and it worked fine.

Then I installed a theme (using the CLI: hyper install verminal, which seems to have succeeded) and now the font is back to what it was before, i.e. without Powerline, no matter what I say in the preferences.

@batjko
Copy link

batjko commented Jan 3, 2019

Actually, strike the above.
I just read in the theme's README, that I need to add overrides to the preferences, which then allows me to set the font for the theme, e.g.:

module.exports = {
  config: {
    // Overrides for the verminal theme
    verminal: {
      fontFamily: '"Source Code Pro for Powerline"'
    },
    // default font size in pixels for all tabs
    fontSize: 14,
    fontFamily: '"Source Code Pro for Powerline", Menlo, "DejaVu Sans Mono", Consolas, "Lucida Console", monospace',

   // [etc...]

Works fine for me now, e.g.
image

@saminnet
Copy link

saminnet commented Jan 4, 2019

It didn't work for me. I tried reinstalling and tired different themes as well, still same result!

@alcappello
Copy link
Author

@batjko
I also tried and it didn't work, I have the same problem even on a fresh install and without themes. The new 3.0.0-canary.1 doesn't resolve the problem. You seem to use Hyper on Windows (I can see the burger menu on the top left corner in your screenshot), I'm on macOS. Possibly related to OS?

@batjko
Copy link

batjko commented Jan 4, 2019

You seem to use Hyper on Windows

Indeed. In the screenshot I'm using the WSL, which is what I do most development from.

Possibly related to OS?

Not idea but yea, possibly.
I also just learned that not all themes require this separate configuration I mentioned. The Material theme works just fine from the standard properties for font-family.
So looks like my issue was just a Verminal thing.

@saminnet
Copy link

saminnet commented Jan 4, 2019

@batjko
I'm on macOS. Possibly related to OS?

I'm on macOS as well and I'm using Fish shell of that's related as well.

@alcappello
Copy link
Author

It seems to be solved in 3.0.0-canary.4 (not in 2.1.1), even if I can't find why in the backlog - but who cares, I'm so happy that I have my favourite Terminal back and running! ❤️

@whatsrtos
Copy link

    verminal: {
      fontFamily: '"Fantasque Sans Mono", "Powerline Consolas"',
      fontSize: 14,
    },

It works for me, make sure using theme “verminal”

@Tiesco789
Copy link

In the font family I just added '"Source Code Pro for Powerline", monospace, powerline'. This works for me!

@aalliikk
Copy link

It doesn't work for me.

I have Hyper 3.0.2 installed on macOS High Sierra.

Also, I've installed "Source Code Pro for Powerline", but it doesn't change anything.

What to do?

@joelsantosjunior
Copy link

It doesn't work for me as well
I have Hyper 3.0.2 on Windows 10 pro
Also, I've installed "Source Code Pro for Powerline", but it doesn't change anything.

@memegauste
Copy link

Its working for me under macOS Mojave 10.14.6 with Powerline fonts installed and also on Windows 10 Home too :)

With mac I was forced to do @batjko solution, on Windows no fix was needed.

@abenevaut
Copy link

Worked for me

// Overrides for the verminal theme
    verminal: {
      fontFamily: '"Fira Code", Menlo, "DejaVu Sans Mono", Consolas, "Lucida Console", monospace'
    },

https://github.com/tonsky/FiraCode/wiki/Installing

@scott-joe
Copy link

scott-joe commented Nov 20, 2019

If you're running into this issue after upgrading to macOS Catalina, update the permissions on your sudo chmod 775 ~/Library/Fonts/**/*. That's what finally fixed this for me.

snappy316 added a commit to snappy316/dotfiles that referenced this issue Apr 18, 2020
- Switched theme to `verminal`
- Added a config option for `verminal` to set the font family, per GH issues mentioning Powerline fonts problems - vercel/hyper#3343
- Enable `hyper-font-ligatures`
- Removed the `lineHeight` option, as it was messing up the oh-my-zsh theme
@ghazette
Copy link

ghazette commented Oct 8, 2020

Actually, strike the above.
I just read in the theme's README, that I need to add overrides to the preferences, which then allows me to set the font for the theme, e.g.:

module.exports = {
  config: {
    // Overrides for the verminal theme
    verminal: {
      fontFamily: '"Source Code Pro for Powerline"'
    },
    // default font size in pixels for all tabs
    fontSize: 14,
    fontFamily: '"Source Code Pro for Powerline", Menlo, "DejaVu Sans Mono", Consolas, "Lucida Console", monospace',

   // [etc...]

Works fine for me now, e.g.
image

IT WORKS AWESOME

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests