Spaceship-prompt: Package icon isn't rendering

Created on 16 Mar 2018  路  7Comments  路  Source: denysdovhan/spaceship-prompt

Issue

Get inside a directory with a Node package.
Screenshot

I already saw #378 and What's the weird character in front of a section? wasn't helpful.

Font: FiraMono

Environment

Spaceship version: 3.3.0
Zsh version: 5.4.2
Zsh framework: oh-my-zsh
Zsh plugin manager: None
Terminal emulator: gnome-terminal
Operating system: Linux

question wontfix

Most helpful comment

OK, so "font fallbacks" sounded good to me so I went and searched stuff about it and about fontconfig. After too much time searching I made no progress.

The solution (for me) was to just install Google's Noto Emoji font (which in Arch is pacman -S noto-fonts-emoji). There are colors too!

I really think you should at least add it the the README, that'll save others a lot of time.

Also, notice I didn't mention any configuration - there wasn't any.

All 7 comments

Unicode symbols are handled by the respective terminal emulators, It's not an issue with the theme.

You could try setting the character encoding on GNOME-Terminal.

It's already UTF-8.

Sorry, There is nothing we can do about it. gnome-terminal is handling the icon rendering. There was a suggestion to install Noto font in Linux in #202.

I knew that the issue is probably not with the Spaceship theme, I was just looking for some help.

Do you know of any other solution that would let me keep using my current font? Maybe another terminal emulator? (preferably not Hyper)

This looks like a glyph is missing from the font itself, you need to search how to configure font fallbacks with fontconfig. It allows to define a primary font, and use a fallback font only for those glyphs that are not present in the primary font.

OK, so "font fallbacks" sounded good to me so I went and searched stuff about it and about fontconfig. After too much time searching I made no progress.

The solution (for me) was to just install Google's Noto Emoji font (which in Arch is pacman -S noto-fonts-emoji). There are colors too!

I really think you should at least add it the the README, that'll save others a lot of time.

Also, notice I didn't mention any configuration - there wasn't any.

What you achieved is exactly the font fallback 馃槂 The fontconfig configuration is bundled with the noto-fonts-emoji (see *.conf files here), that's why you didn't have to do anything manually.

By the way, I maintain ttf-emojione package on AUR which also comes with the proper fontconfig configurations.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

JounQin picture JounQin  路  3Comments

MatthiasJ picture MatthiasJ  路  4Comments

martincartledge picture martincartledge  路  4Comments

janjur picture janjur  路  3Comments

Vvkmnn picture Vvkmnn  路  3Comments