Powerlevel9k / powerlevel9k

Powerlevel9k was a tool for building a beautiful and highly functional CLI, customized for you. P9k had a substantial impact on CLI UX, and its legacy is now continued by P10k.
https://github.com/romkatv/powerlevel10k
MIT License
13.46k stars 947 forks source link

No icons with Nerd Fonts #1391

Open Gako358 opened 4 years ago

Gako358 commented 4 years ago

Describe Your Issue

What is happening? No icons or glyphs on my powerlevel9k

Have you tried to debug or fix it?

Have tried different fonts, using urxvt terminal. Tried downloading nerd fonts and installed again, to see if the icons set maybe was bugged.

Have you tinkered with your settings, and what happened when you did? Did you find a bit of code that you think might be the culprit? Let us know what you've done so far!

Environment Information

This information will help us understand your configuration.

Issues with Fonts & Icons

You may delete this section if your issue is not font / icon related.

When doing a $get_icon_names ther is no icons

romkatv commented 4 years ago

Does the output of xrdb -query indicate that urxvt is using a Nerd Font? If not, see https://wiki.archlinux.org/index.php/Rxvt-unicode#Configuration for how to configure fonts (among other things) for urxvt.

Gako358 commented 4 years ago

Thank you for replying, here is my code for fonts.

URxvt.font: xft: Hack\ Bold\ Nerd\ Font:pixelsize=11:antialias=true:hinting=true

when doing xrdb -query, i get no output.

romkatv commented 4 years ago

Thank you for replying, here is my code for fonts.

Is urxvt actually using Hack Bold Nerd? If you change this font to something else, do you notice any difference in the way text looks in urxvt?

Gako358 commented 4 years ago

Yes, i tried changing to Droid Sans and it changes. And the font look identical to how the Hack Bold is supposed to look. strange...

I have a feeling there is a user error on my behalf here..

romkatv commented 4 years ago

I have a feeling there is a user error on my behalf here..

Almost certainly. You would make it easier for others to help you if you could answer all questions from the issue template without skipping any. I'll highlight a few sections you've skipped over that are crucial for understanding your issue.

Most issues are best explained with a screenshot. Please share one if you can!

This is the most important thing. Without a screenshot it's anyone's guess what "no icons or glyphs" means.

Which font configuration mode are you using? You can check this with (echo $POWERLEVEL9K_MODE).

Do run the command and post its output.

Better yet, run typeset -pm 'POWERLEVEL9K_*'.

Please share the contents of $P9k/debug/font-issues.zsh.

Here $P9k is a placeholder for the directory where you've cloned powerlevel9k.

If this is an icon problem, does the output of $ get_icon_names look correct?

Ignore the dollar. The command you need to run is get_icon_names. Attach a screenshot of the output.

P.S.

If you don't mind my asking, how did you learn about the existence of powerlevel9k?

Gako358 commented 4 years ago

Content of font-issues.zsh http://dpaste.com/0VTT932

snap2020-01-01_19-25-35

snap2020-01-01_19-26-09

romkatv commented 4 years ago

Thanks for posting the screenshot. Your terminal is not using Hack. See here for how Hack looks like. What you see in the terminal is likely a fallback that urxvt uses when the configured font is invalid. It's basically "no font" mode.

Gako358 commented 4 years ago

http://dpaste.com/1B30SP4

There is my .Xdefaults

I do not see how it wont pull in the fonts? Please advice if you can

romkatv commented 4 years ago

Here's the question that you need to ask: "How to configure urxvt to use Hack Nerd Font?" I don't know the answer as I use neither urxvt nor Hack Nerd Font. There must be forums that are better suited to questions of this sort than an issue tracker of an unrelated abandoned project.

Gako358 commented 4 years ago

did a fc-list | grep Hack.. and found it to be my bad typing. solve the issue, so can close this.

the output should be: URxvt.font: xft:Hack Nerd Font:pixelsize=12

Than you for your help, much appreciated.

romkatv commented 4 years ago

You are most welcome.

If you don't mind my asking, how did you learn about the existence of powerlevel9k?

Do you mind? It would allow me to help future potential users so that they don't fall into the same trap.

Gako358 commented 4 years ago

Watched some videos on youtube where others where tweaking their terminals, and had to do some searches, and found you from there.

romkatv commented 4 years ago

Watched some videos on youtube where others where tweaking their terminals, and had to do some searches

Got it. Thanks.

and found you from there.

I'm neither a developer nor a user of this project.