Powerlevel9k: Custom glyphs not appearing

Created on 2 Feb 2017  Â·  21Comments  Â·  Source: Powerlevel9k/powerlevel9k

Hi,

I ran the instructions on OSX and installed the Adobe Source Code TTFs.

I see that the virtualenv glyph is working properly but the other glyphs are showing up as ?.

Anyone have an idea what I might be doing wrong?

screen shot 2017-02-01 at 7 46 20 pm

Most helpful comment

Ahh, got it, need POWERLEVEL9K_DIR_HOME_SUBFOLDER_FOREGROUND

All 21 comments

Hi @ixodie !

Which POWERLEVEL9K_MODE do you use? You may have configured the wrong font in your terminal emulator..

I have:

POWERLEVEL9K_MODE='awesome-fontconfig'
ZSH_THEME="powerlevel9k/powerlevel9k"

And I use iterm2 in OSX with default font for the profile being Source Code Pro 12pt

Any ideas what I am doing wrong?

@ixodie I don't know much about fontconfig, but I think it should work if you installed awesome-terminal-fonts correctly. Could you double-check that? I am not sure about which font you need to configure as non-Ascii-Font in iTerm2 (if that matters at all).

I did install those fonts, as well as a lot of other ones suggested.

screen shot 2017-02-05 at 2 42 57 pm

Maybe you need to update your font cache: fc-cache -f -r -v.
From the help:

  -f, --force              scan directories with apparently valid caches
  -r, --really-force       erase all existing caches, then rescan
  -v, --verbose            display status information while busy

I'm doing this on OSX and I cleared the font cache and it still doesn't work.

Hmm. Maybe someone with more experience with fontconfig than me can help.

Thanks.

To be clear, the virtualenv python icon works, as do the side arrows and the status green check, but nothing else is working.

This is what I have now:
POWERLEVEL9K_MODE="awesome-patched" (have changed this back and forth with no effect)
POWERLEVEL9K_LEFT_PROMPT_ELEMENTS=(dir virtualenv vcs)
POWERLEVEL9K_RIGHT_PROMPT_ELEMENTS=(status history)
POWERLEVEL9K_DIR_FOREGROUND="white"
POWERLEVEL9K_RBENV_FOREGROUND="white"

ZSH_THEME="powerlevel9k/powerlevel9k"

And the DIR_FOREGROUND doesn't work either.

So, what you are saying is, that changing the colors for the dir and rbenv segment does not work, right?
The dir segment is a stateful one. The color overriding works differently there. You could read more about that in the wiki.
Changing the color for the rbenv segment does not work, because you have not configured the segment at all.

OK, that helped resolve that issue. I am now able to get the colors working on the DIR segment.

But still no icons, except the python one.

Also, it seems that the dir_default doesn't work properly:

POWERLEVEL9K_MODE="awesome-patched"
POWERLEVEL9K_LEFT_PROMPT_ELEMENTS=(dir virtualenv vcs)
POWERLEVEL9K_RIGHT_PROMPT_ELEMENTS=(status history)
POWERLEVEL9K_DIR_DEFAULT_FOREGROUND="white"
POWERLEVEL9K_DIR_HOME_FOREGROUND="white"

screen shot 2017-02-07 at 3 05 33 pm

Great! Now we are getting somewhere! :)
Okay. For awesome-patched mode you need to install and configure one of these pre-patched fonts.

Yes I downloaded that font, and double clicked on it, and some window flashes quickly and then disappears and the font book says the font is already installed.

So in iterm2 I have this:
screen shot 2017-02-07 at 3 22 29 pm

That font you selected just includes Powerline symbols, but not the awesome-terminal-font symbols.
This is my configuration:
bildschirmfoto 2017-02-07 um 21 50 23

So I assume that that is a single font, which for some reason I do not have.

screen shot 2017-02-07 at 3 52 40 pm

Could you uninstall that font, and double-click the awesome one again? I think it is not properly installed..

Aha! That was the problem. I am seeing the proper font in the list now.

I still can't get the non-home dir foreground to white.

@ixodie you'll need to set POWERLEVEL9K_HOME_SUBFOLDER_FOREGROUND to have a color while in a subdirectory of your home directory. DEFAULT handles everything outside of your home directory.

Are you sure? I tried POWERLEVEL9K_HOME_SUBFOLDER_FOREGROUND and it didn't do anything.

The dir segment has three states:

  1. Directly inside home folder (HOME)
  2. Somewhere inside a subfolder of home (HOME_SUBFOLDER)
  3. Anywhere else (DEFAULT)

Edit: @rjorgenson was faster. :D

Ahh, got it, need POWERLEVEL9K_DIR_HOME_SUBFOLDER_FOREGROUND

Thanks, @dritter and @rjorgenson for providing excellent support to @ixodie! Glad you're all up and running :)

Was this page helpful?
0 / 5 - 0 ratings

Related issues

OATOMO picture OATOMO  Â·  4Comments

edwardsmit picture edwardsmit  Â·  3Comments

guidoilbaldo picture guidoilbaldo  Â·  5Comments

iiison picture iiison  Â·  3Comments

jpdoria picture jpdoria  Â·  5Comments