Vscode: Powerline fonts in terminal incorrect

Created on 2 Jun 2016  Â·  19Comments  Â·  Source: microsoft/vscode

  • VSCode Version: 1.2.0-insiders
  • OS Version: OSX

Steps to Reproduce:

  1. Open Code from terminal
  2. Open integrated terminal
  3. See fonts are broken
  4. This may be some Powerline font issue in tty but seems to work ok in Atom integrated terminal ok
  5. Picture below shows code, bottom terminal is what it should look like
    screen shot 2016-06-02 at 07 24 53
bug integrated-terminal

Most helpful comment

That seems to do the trick however, the colours are different and the right hand side seems off

screen shot 2016-06-15 at 13 31 21

All 19 comments

@jchannon I haven't used these before. Do I install from https://github.com/powerline/fonts and then use some special characters in my prompt?

Nope just use those fonts, install OH MY ZSH and then maybe set the theme
to be something like here:
https://coderwall.com/p/sun7za/mac-os-x-oh-my-zsh-theme-on-iterm2

On 2 June 2016 at 08:23, Daniel Imms [email protected] wrote:

@jchannon https://github.com/jchannon I haven't used these before. Do I
install from https://github.com/powerline/fonts and then use some special
characters in my prompt?

—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/Microsoft/vscode/issues/7116#issuecomment-223215260,
or mute the thread
https://github.com/notifications/unsubscribe/AAGapsnbtsqn89HTPu7Vgbt514PEogGDks5qHoTZgaJpZM4IsPeG
.

This might be caused by lack of proper locale. See #7301 for workaround.

i am having the same issue on linux with zsh

Same issue here on Linux, 1.2 release.

OS: Ubuntu Gnome 16.04
Shell: Zsh (oh-my-zsh)
Zsh theme: powerlevel9k
Font: Ubuntu Mono derivative Powerline Regular

I tried the mac workaround but unfortunately it did nothing.

@jchannon I had this issue on OS X. It has to do with the Terminal not using the editor.fontFamily setting, can you try setting your terminal.integrated.fontFamily to the same powerline font used in editor.fontFamily?

setting the terminal.integrated.fontFamily in my User Settings file fixed it. thx.

That seems to do the trick however, the colours are different and the right hand side seems off

screen shot 2016-06-15 at 13 31 21

Let's wait to get Terminal theme support, but that's another issue. About the time on the right, I guess the terminal is reporting incorrect terminal column width.

Great to hear that the main issue is the font wasn't being set. In 1.3.0 the font's default fallback is editor.fontFamily but you can set it explicitly with terminal.integrated.fontFamily https://github.com/Microsoft/vscode/issues/6791

I'm going to close this off but these issues may still be blocking this:

I am having the same issue on OS X with zsh

font, SourceCodePro+Powerline+AwesomeRegular
font source, https://github.com/stefano-meschiari/dotemacs/blob/master/SourceCodePro%2BPowerline%2BAwesome%2BRegular.ttf

image

image

@xujipm try these instructions https://github.com/Microsoft/vscode/issues/15119#issuecomment-259248159

@Tyriar i have try that way, but didn't work~

@xujipm I use the same font and this worked for me:
"terminal.integrated.fontFamily": "'SourceCodePro+Powerline+Awesome Regular'"
Note the single quotes inside of the double quotes.
image

@Gkjsdll Thanks! Working fine now.

@Gkjsdll Your solution worked!

@Gkjsdll Cool! Thanks for the solution!

@Gkjsdll Nice Solution!

Locking to stop notifications and prevent the solution above from being buried. If the solutions above don't work for you, feel free to file a new issue and link it to this one.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

omidgolparvar picture omidgolparvar  Â·  3Comments

biij5698 picture biij5698  Â·  3Comments

DovydasNavickas picture DovydasNavickas  Â·  3Comments

v-pavanp picture v-pavanp  Â·  3Comments

lukehoban picture lukehoban  Â·  3Comments