-
-
Notifications
You must be signed in to change notification settings - Fork 25.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update the character used in powerline
The code points have been updated in 53fbfe1, see - powerline/powerline@53fbfe1 - powerline/powerline#4
- Loading branch information
Showing
1 changed file
with
4 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
97849bd
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you tell me what font you are using ?
I'm using Menlo for Powerline
But it doesn't has the character you modified in this commit.
97849bd
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm using
PowerlineSymbols.otf
directly.You may have to update your fonts: https://github.com/Lokaltog/powerline-fonts
97849bd
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This commit breaks things for those of us who were using a patched font, as recommended in the file comments. Please update the theme comments with a note about how to use powerlinesymbols.otf directly?
97849bd
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Moreover, AFAICT this change presents a significant pain in the butt to all OS X users who aren't particularly familiar with how our fontconfigs work.
Well, me at least.
97849bd
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
... and me. On osx with stock Terminal.app how do you use the PowerlineSymbols.otf directly?
97849bd
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@SleepyBrett the powerline doc only explain how to use
PowerlineSymbols.otf
for linux, I don't know if it is even possible on OS X. See here for instructions to install a patched font.97849bd
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't think you should change this. We use it very well before. But now we have to update the fonts. In OSX, I still couldn't patch Monaco fonts. I patch it failed while I patch other fonts success.
97849bd
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Although I fix it finally, but I still think this is a wrong update.
97849bd
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Although the fontconfig method is preferred, you can't just force everyone to dig for it and set it all up. You could at least check if the users have patched fonts or a powerline+fontconfig on their system.
Anyway, for those who are still lost: https://powerline.readthedocs.org/en/latest/installation/linux.html#fontconfig
97849bd
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Very agree with the opinion of @emyller
97849bd
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi @emyller. I'm not sure I completely follow what you said: I am not forcing anyone to do anything, people are free to use a patched font if they want to 😄
Now, being able to check for the font would be awesome, but I don't know if it is possible.
97849bd
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hey @gdetrez; problem is that a patched font won't display the new characters introduced by this commit. :)
About automagically checking, one could check/grep for a fontconfig configuration file - according to the link I gave above - when defining the powerline chars. 🎉
Thanks for your contribution to open source code, anyway.
97849bd
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hej @emyller. Patched fonts should have the characters in the commit if they have been patched recently. The problem is that there is now 2 version of most patched fonts in the wild: the old ones, where the symbols are in the “Misc symbols and arrows” range and the new ones where they are in the “Private Use Areas”. For instance these fonts have been updated to the new code points, but those use the old one.
97849bd
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I have the same problem with the 'old style' patched fonts. Since I don't want to use the rewrite of vim-powerline hence it need python I stick with the old one. This however need the 'old style' patched fonts. If you need a working agnoster theme grab it from here.
97849bd
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please revert this :(
97849bd
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@emyller is that the preferred way of installing PowerLine in Linux, rather than hauling around patched font files in my Dropbox?
97849bd
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@colemickens it seems so. I've never had a problem since I set up my environment like that. :-)
97849bd
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I have patched fonts, and still have this issue. I've been replacing this file from other forks but with every oh-my-zsh update i have to replace it again. Maintain a separate fork just for 1 commit it's not really efficient. I don't understand what's the benefit if before it worked for everyone.
97849bd
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The powerline fonts were updated; this commit changed the characters to reflect that update. As said in the 2nd comment of this thread, update your fonts from https://github.com/Lokaltog/powerline-fonts
97849bd
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This patch prevented me from upgrading oh-my-zsh since ages :( I'd vote for reverting this.
97849bd
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
97849bd
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@mcornella I locked oh-my-zsh to d6a36b1 and started tracking the fonts which worked well with that version here (https://github.com/jaseemabid/dotfiles/tree/master/fonts).
This is how it looks with latest oh-my-zsh on iterm with Inconsolata
from https://github.com/Lokaltog/powerline-fonts.
This is something that worked well on mac and linux since 2012. For me its just easier to revert this patch (with some minor conflicts) rather than figureout nuances of font rendering on both mac and linux. Its a PITA to maintain a local fork, but that seems like an easier option in this case. I don't mean to be offensive. I'm tired of
Lokaltog/powerline-fonts
, OSX font cache and all things related. I just want it to just work the way it did.Reverted and all good :)
97849bd
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Lesson learned, backward compatibility is a hard business ;)
97849bd
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I understand you, believe me 😄 In that case, copy the version of the agnoster theme that works for you into the
custom/themes/
folder. That way it'll use that one instead of the provided within the mainthemes/
folder, and you won't have to lockoh-my-zsh
to any specific commit 😉Thank you for your patience!
97849bd
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@mcornella Yeah. Can use it as
agnoster-old
probably. Will do. Thanks.