Comments (17)
We finally have nerd-fonts support!
from powerlevel9k.
I will be pulling in a separate font config option for nerd-fonts via @lcorsini's #390 PR!
from powerlevel9k.
Meslo LG M for Powerline actually seems to work fine for me - this is a nerd font.
Although all the icons are a bit small.
from powerlevel9k.
I found the same thing and tried out a swap the other day. All of the font-awesome icons were narrow and squished, but I was just trying their patched fonts which are about a month old. Might have better luck patching myself. There were also a few glyphs still missing from font-awesome and octicons, but I found suitable replacements for them with what was included.
from powerlevel9k.
@rjorgenson I had exactly the same experience with nerd-fonts. Thats why this is a long-term issue. The plan to switch fonts is in #97
from powerlevel9k.
I actually didn't have luck with awesome-terminal-fonts before, because I didn't like any of the pre-patched fonts and urxvt does not like the fontconfig fallback approach. nerd-fonts seems like an outright improvement, at least in my case.
The glyph sizes are appropriate in gnome-terminal (seen on the right). However, I think some/most of these are "double-wide glyphs", so urxvt shrinks them to occupy just one cell (seen on the left). I'm not sure how to configure urxvt to handle this properly and I'm out of ideas at this point. ryanoasis/vim-devicons#11 may be relevant.
I'm actually amazed at how annoying and complicated fonts are to deal with in the grand scheme of things, but at least this is an improvement over what I had before.
from powerlevel9k.
It looks like none of powerline9k's modes work with nerd-fonts? I'm using a pre-patched nerd-fonts (fontawesome, octicons, pomicons, and implicit devicons), and while awesome-fontconfig
comes close, it still has some gaps:
It's pretty clear how to add a new mode to powerline9k, but how can I figure out the corresponding nerd-fonts codepoints?
Edit: Tentatively looks like a nerd-fonts
issue with some but not all of their fonts. However, there seems to be a different issue, which is that many of the icons are shifted up by a few pixels?
I'm now using Inconsolata from awesome-tools
. On a first read, this issue made it seem like that would be a drop-in replacement, but that appears not to be the case.
from powerlevel9k.
Ah font fun 😏
@dritter Yeah unfortunately there are quite a few serious issues still 😟 so I have mostly been focusing on the low hanging fruit to keep the project moving 😄 . I was initially just creating it for another project I had but the more useful others find it the more I try to put into it.
@rjorgenson All of the "pure" mono versions currently have the squished issue/effect. If you can use the double width glyph version (if your terminal allows it) you might get better results
@martinpelikan Yeah the primary driving force behind the "pure" mono versions was to get the glyphs to show up in terminal emulators like urxvt where seems to skip them if they are too wide.
@ariscn see my comment on: ryanoasis/nerd-fonts#40 (comment)
from powerlevel9k.
@ryanoasis Don't worry, I'll wait till everything is ready 😉
@ariscn awesome-terminal-fonts
use to relocate the code points by default. So the code points differ from the ones used by nerd-fonts
. To make things worse, the code points in awesome-terminal-fonts
differ depending what kind of strategy (patching or fallback) you use (which is why we have to care about two different icon (code point) sets.
Also nerd-fonts
code points are nearer to the ones from the original fonts, and that is why I want to switch to that. So it should be a drop-in replacement in the future IMHO.
from powerlevel9k.
I tried a few nerd fonts (using Babun with Zsh on Windows via Mintty), but none of them worked properly. Getting these fonts to work with Windows is a big pain.
from powerlevel9k.
@DanielGGordon Yeah I have not had a lot of time recently and I never really tested the fonts on Windows fully. Nevertheless your feedback is helpful for me to focus on the pain points 👍
from powerlevel9k.
i tried several nerd fonts and none seem to display the clock:
POWERLEVEL9K_TIME_FORMAT="%D{%H:%M:%S \uE868 %d.%m.%y}"
anyone have the below working?
DejaVu Sans Mono for Powerline Nerd Font Plus Font Awesome Mono Windows Compatible.ttf
all i get is a weird compressed block.
from powerlevel9k.
Whats the current status of this?
from powerlevel9k.
The problem is for windows users - I'm trying to use nerd fonts with the new Ubuntu For Windows terminal. A lot of the icons look small - and you have to use monospace.
from powerlevel9k.
The problem is for windows users - I'm trying to use nerd fonts with the new Ubuntu For Windows terminal. A lot of the icons look small - and you have to use monospace.
from powerlevel9k.
@DanielGGordon Yeah the monospace ones will have to be small to maintain scale to fit as a single-width glyph. As for Windows and non-mono fonts... I don't know too much on what is possible so I'd have to get back to you on that!
from powerlevel9k.
@DanielGGordon same issue
from powerlevel9k.
Related Issues (20)
- [Performance] PL9K is terribly slow HOT 2
- history command times bug HOT 3
- warning at startup: command not found: prompt_vcsi HOT 2
- go_version doesn't work with go modules directory
- Why does the prompt on the right overflow to the next line? HOT 8
- Expanding on custom directory icons HOT 2
- Theme not applying properly [Ghostwheel] HOT 2
- Does this theme also manage the colors of files and directories from ls -G? HOT 4
- No icons with Nerd Fonts HOT 13
- how to reference another virtualenv plugin? HOT 3
- [Performance] HOT 2
- Disable/Hide all icons HOT 3
- Does make sense to have POWERLEVEL9K__[plugin_name]_[BG|FG]_COLOR variables? HOT 3
- Is it possible to only add a newline if vcs is present? HOT 2
- Hide a part of current working directory HOT 5
- POWERLEVEL9K_DIR_BACKGROUND not affecting prompt HOT 3
- Add modifications in different file HOT 1
- Unable to change theme in .zshrc file HOT 1
- git background when repository has changes not showing HOT 6
- Readme img is 404
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from powerlevel9k.