polybar: Unable to display glyph

Hello,

I am having trouble to make the example bar working properly. Each time I launch it I am getting warnings :

warn: Could not find glyph for 57967 warn: Could not find glyph for 57384 warn: Could not find glyph for 57382 warn: Could not find glyph for 57366 warn: Could not find glyph for 57612 warn: Could not find glyph for 57967 warn: Could not find glyph for 57384 warn: Could not find glyph for 57382 warn: Could not find glyph for 57366 warn: Could not find glyph for 57612

and no glyphs are displayed.

I have installed ttf-unifont and siji-git :

$ pacaur -S ttf-unifont siji-git

$ pacman -Qs siji            
    local/siji-git r21.95369af-1
        Iconic bitmap font based on stlarch with additional glyphs

$ pacman -Qs ttf-unifont 
    local/ttf-unifont 9.0.06-2
        TrueType version of the GNU Unifont

Running fc-match give me :

$ fc-match fixed:size=10                      
DejaVuSans.ttf: "DejaVu Sans" "Book"

$ fc-match unifont:size=6                          
Unifont.ttf: "Unifont" "Medium"

$ fc-match siji:pixelsize=10
DejaVuSans.ttf: "DejaVu Sans" "Book"

Seems like siji is not detected… What can be the problem here ? Thanks in advance for your help.

$ polybar -v
polybar 2.4.7 

Features: +alsa +curl +i3 -mpd -network 

About this issue

  • Original URL
  • State: closed
  • Created 7 years ago
  • Comments: 15 (6 by maintainers)

Most upvoted comments

Ok got it. Seems like I need to replace :

font-2 = siji:pixelsize=10;0

with :

font-2 = WunconSiji:pixelsize=10;0

And it’s working fine now

Edit: Good timing 😃 Your command :

$ echo "$(fc-list : family | grep siji | tail -1):pixelsize=10"

Does not return anything but this one does :

$ echo "$(fc-list : family | grep Siji | tail -1):pixelsize=10"
Wuncon Siji:pixelsize=10

Everything is working properly now. Thanks for your quick response and the great work you have put into Polybar. Cheers!

Your siji probably has another family name. Replace font-<num> = siji... in the polybar config by the result of this command:

$ echo "$(fc-list : family | grep siji | tail -1):pixelsize=10"

In my case I needed to remove /etc/fonts/conf.d/70-no-bitmaps.conf

thx for https://github.com/jaagr/polybar/issues/22#issuecomment-275254031

@chrissnell

For Font Awesome, you can copy/paste glyph from here : http://fontawesome.io/cheatsheet/

@lulivi that’s not how you check the font. See the Wiki for how to check, if the font loaded properly

Hey, I use Arch Linux, i3wm with polybar and I encounter the same problem, that polybar just won’t display the glyphs. They display in the terminal, so it’s not a systemwide problem. The output of fc-match is NotoSans-Regular.ttc: "Noto Sans" "Regular" In polybar’s config I have

font-0 = fixed:pixelsize=12;1
font-1 = unifont:fontformat=truetype:size=10:antialias=false;0
font-2 = WunconSiji:pixelsize=12;1

What do I do wrong?

EDIT: I just found out what the problem was. There is a file /etc/fonts/conf.d/70-no-bitmap-fonts that apparently enables blocking bitmap fonts. I removed it from /etc/fonts/conf.d/ , and now Polybar displays the glyphs!

It is. It’s a bitmap font and looks crappy on my HiDPI, too. I would like to use Font Awesome which–I believe–is vector. I’m not sure how to type the glyphs on the keyboard into the config file, though.

On Mon, Jan 16, 2017 at 2:05 PM, nikolowry notifications@github.com wrote:

Is Siji fixed to pixelsize 10? I can’t seem to get it to render at any other size. I have a hidpi screen and the icons are barely visible. Are there any other recommended glyph fonts?

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/jaagr/polybar/issues/313#issuecomment-272951191, or mute the thread https://github.com/notifications/unsubscribe-auth/ABBd8jhXmXDfY-6GJA9cekTvW-NXZtxwks5rS82cgaJpZM4LfJje .