Closed Kristaphonie-zz closed 6 years ago
Hi @Kristaphonie !
That sounds like a lot of questions.. So, first of all, intellij has a builtin terminal that comes with its own fonts AFAIK. That "weird" line endings you see are probably the powerline separators.. But they seem too small for your font size.
But let's focus on iterm2
. That question marks you see are the powerline symbols as well. You need to set a powerline enabled font in your settings. And are you sure you have a working fontconfig
setup? This is way more complicated than to use a pre-patched font..
Last but not least, you need to set the right POWERLEVEL9K_MODE
at the top of your config.
I hope that helps.
Hello @dritter
So I've done both of those things, here's what I'm setting in my .zshrc file:
POWERLEVEL9K_MODE="awesome-fontconfig"
ZSH_THEME="powerlevel9k/powerlevel9k"
If you click on the images, the iterm terminal one displays all the icons, except for the line ending triangles. And it seems because the seperator fonts are invalid (as shown at the bottom of my original post)? But the rest of the fonts work fine.
And I'm not too worried about the intellij separators being off more then I'm confused about why the fonts are working perfectly in intellij terminals. It definitely comes with it's own fonts, but the POWERLEVEL9k
fonts and mappings probably don't come with intellij stock I assume.
I have the font selected:
which is the font that I used Xcode to add the 4 other fonts to.
It's literally only the segment fonts that aren't showing up. So I think that's the powerline fonts, but they show up in fontbook:
Which some of them are showing up.
The intellij Terminal Emulator fires up a Shell, which then uses your configuration. This means it reads in your default ~/.zshrc
. This is like iTerm
. The difference is how it displays the things. So in each Terminal Emulator you can change Colors, Fonts, etc. (well, colors being a bit special).
The other thing is that your FontBook
App is not the same as fontconfig
, which is a different program. It won't be enough to put fonts in FontBook. If you prefer that style, you should install a pre-patched font that already has all icons included. The downside is that you have only a limited set of font available (but even that can be pretty much, if you look at the nerdfonts repo (caveat: if you use nerdfonts, you need to change POWERLEVEL9K_MODE
). If you prefer to continue to use awesome-fontconfig
, I recommend you have a look in the installation instructions to make sure everything is set up correctly.
Okay fixed it. I missed the step to source the individual fonts in .zshrc. Which is weird because the other icons are working. But now I just have to fix the small visual issues on it, which the troubleshooting guide fixes I believe.
Thanks @dritter. I appreciate you helping me work through a non-issue. :)
Great to hear @Kristaphonie
If you source the fonts, your P9K mode should be awesome-mapped-fontconfig
, and you should source the fonts before you source P9K. That way the codepoints for the glyphs should be more stable, because we then use the glyph-variables internally.
Glad to hear everything is up and running!
@Kristaphonie - Any chance you have thoughts on #831?
For some odd reason, the terminal in intellij is displaying correctly, but my iterm2 is not.
Click on them for bigger size Intellij:
Iterm2:
The intellij terminal is showing weird line endings, but I saw there were fixes for that in the troubleshooting guide, and honestly is not a real issue as it still looks better then default terminal.
I've been going through multiple different issues on github, and other tutorial articles, and the github installation instructions multiple times, and it seems to have worked.. for intellij. So the config seems to be okay, or else intellij would be having a hard time too I assume.
I've tried the font installation instructions multiple times, and I've tried going through the iterm2 preferences and tinkered around a bit, but nothing seems to do much. I'm using oh-my-zsh. I've tried playing around with individual settings in my .zshrc file, regarding the powrlevel9k theme, mostly parameters I've found in other peoples configs. Now I'm just back to good ol vanilla parameters, theme and font parameters only.
Zsh version:
zsh 5.5.1 (x86_64-apple-darwin17.5.0)
Cloned the powerlevel9k repo Usingv0.6.5
Iterm2 I'm using theawesome-fontconfig
font-issues.zsh
the output of get_icon_names shows these are ?: POWERLEVEL9K_LEFT_SEGMENT_SEPARATOR: POWERLEVEL9K_LEFT_SUBSEGMENT_SEPARATOR: POWERLEVEL9K_ANDROID_ICON:
Which might explain why iterm is not showing the little triangle end pieces, but I don't know why intellij shows it perfectly.