Source Code Pro not showing Awesome glyphs
Hello,
I followed these instructions to enable icons for Source Code Pro: https://github.com/bhilburn/powerlevel9k/wiki/Install-Instructions#option-2-use-a-programmer-font
I installed the Source Code Pro using this command:
brew tap caskroom/fonts && brew cask install font-source-code-pro
I added this line in my .zshrc file, right above where I specify the theme:
POWERLEVEL9K_MODE='awesome-fontconfig'
ZSH_THEME="powerlevel9k/powerlevel9k"
However, the icons all show as boxes with question marks in them: Screenshot
What could be the problem? I am using iTerm2 w/ Oh my Zsh and I have set the profile font to be Source Code Pro. I saw another issue where the resolution was to install a nerd font, but according to these instructions, it should still be working with a programmer font like Source Code Pro.
What happens when you use the get_icon_names command? Do you see broken font glyphs or working ones? If they are broken, then there's something wrong with your font install.
That said, it looks like in your screenshot you have some other sort of font issue, because the segment separator is larger than the segment.
What is your locale? Give this a shot: https://github.com/bhilburn/powerlevel9k/wiki/Troubleshooting#broken-umlautsutf-8-characters
Hello,
When I try the 'get_icon_names' command, it prints a list mostly of boxes with the question mark inside, like what you see in my screenshot. Here is the output of my locale:
LANG="en_US.UTF-8"
LC_COLLATE="en_US.UTF-8"
LC_CTYPE="en_US.UTF-8"
LC_MESSAGES="en_US.UTF-8"
LC_MONETARY="en_US.UTF-8"
LC_NUMERIC="en_US.UTF-8"
LC_TIME="en_US.UTF-8"
LC_ALL=
Source Code Pro is a default font on OSX you need to specifically set Source Code Pro for Nerd-Fonts (or similar, I don’t know the exact name) as your Profile Font
Installing Source Code Pro for Nerd-Fonts worked. It would be helpful to add that as a note to the installation guide, especially since it is worded in a way that makes it sound like you don't need the nerd patched font.
"The most well-known are Adobe Source Code Pro and Sauce Code Pro, which are usually available from your OS's package manager."
Icons are working, but there is still that small segmet separator issue. Is there a difference between en_US.utf8 and en_US.UTF-8?
@ashgh - You're right, I'll update the docs. And no, I don't think there is a different between those, although we recommend the latter.
I'm glad you're up and running!