Skip to content
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

Powerline fonts not rendered properly using WebGL #2645

Closed
chesteripz opened this issue Dec 22, 2019 · 2 comments
Closed

Powerline fonts not rendered properly using WebGL #2645

chesteripz opened this issue Dec 22, 2019 · 2 comments

Comments

@chesteripz
Copy link

The powerline fonts are not rendered properly with WebGL enabled.

Details

  • Browser and browser version: MS Visual Studio Code, v1.41.1
  • OS version: Windows 10 1909
  • xterm.js version: 4.3.0-beta.28.vscode.1

Steps to reproduce

  1. Install Menlo for Powerline
  2. Enable WebGL rendered in VS Code as follow:
{
    "terminal.integrated.rendererType": "experimentalWebgl"
}
  1. Install zsh
  2. Enable powerlevel9k theme
    5a. The characters are not aligned properly.
    image
    6b. And selection does not inverse the color.
    image
@jerch
Copy link
Member

jerch commented Dec 22, 2019

5a. The characters are not aligned properly.

@Tyriar Already figured that myself - seems the chars are not centered in the "cell" (printed slightly off to the top). The triangle char itself might also a subject of the perfect aligned box chars once we support that (#2409).

6b. And selection does not inverse the color.

@chesteripz This is kinda expected behavior here - we use a different way to colorize selections than swapping foreground and background. Selecting the prompt reveals, that powerline "hacks" the colored arrows with background color + a colored character (which is in the foreground).

@Tyriar
Copy link
Member

Tyriar commented Dec 26, 2019

@jerch this one is just that Chromium bug with textBaseline #2613

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

No branches or pull requests

3 participants