Request for comments/brainstorms: making glyphs look better in gnome-terminal - #12
Open
oconnor663 wants to merge 1 commit into
Open
oconnor663 wants to merge 1 commit into
oconnor663 wants to merge 1 commit into
Conversation
The powerline glyphs don't seem to render properly in gnome-terminal under any distro. I'm not sure why. I posted questions that might get answered in the future: - https://groups.google.com/forum/#!topic/powerline-support/mTIsGWW34U0 - powerline/fonts#31 (comment) In the meantime, these changes seem to make the glyphs render better. Note that I'm testing this in gnome-terminal on Arch with the ubuntu-patched freetype2/fontconfig/cairo libraries. I can already tell that e.g. Konsole renders things differently. Here's the command to generate a TTF file (which goes in ~/.fonts): fontforge -lang ff -c 'Open($1); Generate($2)' powerline-symbols.sfd powerline-symbols.ttf
|
Cool, I'm half Peruvian. :) |
Author
|
Nice :) That's my clone of https://github.com/buildinspace/peru. |
|
Just as an addition, using Konsole on Ubuntu also has the alignment bug, and this fixes it there as well. It probably has to do with the Ubuntu font patches. Maybe the script needs to have some arguments added for platform specific issues, or font-specific fixes. |
Author
|
For what it's worth, I've noticed my left-pointing arrow is too short on the top and the bottom. More tweaks needed. |
|
Dummy proof tutorial, please? |
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
These were the changes that I found made the powerline special characters look good in gnome-terminal (Ubuntu Mono 15, Ubuntu-patched rendering libs, Arch Linux). I can already see how fragile this is -- it doesn't look good if I so much as change the font to Deja Vu Mono, much less the OS. (Seems to survive font size changes though.) The command I'm using to generate the symbols TTF file is:
This isn't appropriate to actually merge, but I'm posting it to get advice. Is FontForge tweaking the way people are expected to get powerline to look good on their platform? Should we think about building a collection of platform-specific patched fonts?