milkypostman / powerline

emacs powerline
Other
793 stars 118 forks source link

Rendering issues with window-system #175

Closed alexandru closed 4 years ago

alexandru commented 4 years ago

Not sure what I'm doing wrong — rendering works perfectly within the terminal (using iTerm2) which has built-in support for powerline glyphs:

image

However using the GUI, on MacOS, those characters aren't rendered correctly:

image

I did install the patched fonts. Initialization is standard:

(use-package powerline
  :ensure t
  :config
  (powerline-default-theme))

Anything I'm doing wrong?

I'm using Emacs 26.3 installed via brew cask install emacs (I think this is the emacsformacosx.com/ build).

c-alpha commented 4 years ago

Regarding the rendering of the separators, have you tried setting

(setq powerline-image-apple-rgb t)

as suggested in https://github.com/milkypostman/powerline/issues/99#issuecomment-410567206? Did that trick for me.

Notwithstanding any other rendering hiccups you might be perceiving though...

alexandru commented 4 years ago

@c-alpha thanks, the suggestions in that thread seem to be fixing the background issue (sometimes when the window is resized I get some rendering artifacts that disappear on further content rendering, but I can't reproduce it reliably and it's bearable).

I still get missing symbols, e.g. these are missing from the GUI version:

image

image

c-alpha commented 4 years ago

Have you set this?

(setq powerline-gui-use-vcs-glyph 't)
alexandru commented 4 years ago

@c-alpha ah, that works for the git icon, thanks ❤️

alexandru commented 4 years ago

Current setup is this:

(use-package powerline
  :ensure t
  :init
  (setq ns-use-srgb-colorspace nil)
  (setq powerline-image-apple-rgb 't) ;; doesn't seem to be defined, but leaving it here
  (setq powerline-gui-use-vcs-glyph 't)
  :config
  (powerline-default-theme))

Setup is now good enough, will close the issue.