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

Request for comments/brainstorms: making glyphs look better in gnome-terminal #12

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from

Conversation

oconnor663
Copy link

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:

fontforge -lang ff -c 'Open($1); Generate($2)' powerline-symbols.sfd powerline-symbols.ttf

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?

image

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
@trusktr
Copy link

trusktr commented Aug 2, 2015

Cool, I'm half Peruvian. :)

@oconnor663
Copy link
Author

Nice :) That's my clone of https://github.com/buildinspace/peru.

@KazroFox
Copy link

KazroFox commented Nov 2, 2015

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.

@oconnor663
Copy link
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.

@italomaia
Copy link

Dummy proof tutorial, please?

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

Successfully merging this pull request may close these issues.

10 participants