You are not logged in.

#1 2018-11-04 15:48:43

lightdarkx
Member
Registered: 2018-08-02
Posts: 9

[SOLVED] Unable to read certain unicode (I assume) characters.

I am using arch in a hp omen ax250tx and have installed significant amount of fonts but still I am unable to read some unicode characters in the default config file of polybar( like the characters in line no 222,242-246,255). Can anyone suggest any font/other ways to resolve the problem?

Some results:

locale

LANG=en_US.UTF-8
LC_CTYPE="en_US.UTF-8"
LC_NUMERIC="en_US.UTF-8"
LC_TIME="en_US.UTF-8"
LC_COLLATE="en_US.UTF-8"
LC_MONETARY="en_US.UTF-8"
LC_MESSAGES="en_US.UTF-8"
LC_PAPER="en_US.UTF-8"
LC_NAME="en_US.UTF-8"
LC_ADDRESS="en_US.UTF-8"
LC_TELEPHONE="en_US.UTF-8"
LC_MEASUREMENT="en_US.UTF-8"
LC_IDENTIFICATION="en_US.UTF-8"
LC_ALL=

localectl

   System Locale: LANG=en_US.UTF-8
       VC Keymap: n/a
      X11 Layout: n/a

Links:
polybar github
The config file mentioned

PS- If I missed giving any info please do tell me.

Last edited by lightdarkx (2018-11-09 14:28:04)

Offline

#2 2018-11-04 18:10:42

patrickziegler
Member
From: ::1
Registered: 2018-11-02
Posts: 29
Website

Re: [SOLVED] Unable to read certain unicode (I assume) characters.

Do you mean they're not displayed properly in your terminal? Or are they not displayed when running polybar?
In any case, those characters are from siji.

Offline

#3 2018-11-07 12:10:02

lightdarkx
Member
Registered: 2018-08-02
Posts: 9

Re: [SOLVED] Unable to read certain unicode (I assume) characters.

The answer is both. No icons are displayed when I run polybar and some are now showing (in terminal) but I doubt they are correct ( like a tshirt for wifi).

I tried installing the font ( that you mentioned ) but nothing changed.

Last edited by lightdarkx (2018-11-07 12:10:53)

Offline

#4 2018-11-07 16:30:35

seth
Member
Registered: 2012-09-03
Posts: 49,985

Re: [SOLVED] Unable to read certain unicode (I assume) characters.

What do you mean "tried"?

fc-match "wuncon siji"

Did you restart polybar afterwards?

tshirt for wifi

Screenshot?

Edit:  no idea how polybar resolves fonts, but the fontname is "Wuncon Siji"!

Last edited by seth (2018-11-07 16:35:24)

Offline

#5 2018-11-07 22:47:17

patrickziegler
Member
From: ::1
Registered: 2018-11-02
Posts: 29
Website

Re: [SOLVED] Unable to read certain unicode (I assume) characters.

What seth said.

Your

font-2 = siji:pixelsize=10;1

should be

font-2 = Wuncon Siji:pixelsize=10;1

seth: Polybar calls FcFontMatch for resolving fonts. It basically does the same as fc-match.

Offline

#6 2018-11-08 17:24:01

lightdarkx
Member
Registered: 2018-08-02
Posts: 9

Re: [SOLVED] Unable to read certain unicode (I assume) characters.

Sorry, I didn't state things clearly. I installed siji-git from AUR and the wifi is actually ramp-signal.

 aurman -Ss siji
aur/siji-git r21.95369af-1 (51, 1.80232) [installed: r22.9d88311-1]
    Iconic bitmap font based on stlarch with additional glyphs

fc-match "wuncon siji"

fc-match "wuncon siji"
DejaVuSans.ttf: "DejaVu Sans" "Book"

Did you restart polybar afterwards?

Yes, I did and also restarted i3wm.

Screenshot?

https://i.imgur.com/11yj8BR.png
I also did what patrickziegler said but it didn't work.

Last edited by jasonwryan (2018-11-08 17:59:41)

Offline

#7 2018-11-08 17:53:51

patrickziegler
Member
From: ::1
Registered: 2018-11-02
Posts: 29
Website

Re: [SOLVED] Unable to read certain unicode (I assume) characters.

Are you sure that you correctly installed siji? Because

fc-match "wuncon siji"

should ouput

siji.pcf: "Wuncon Siji" "Regular"

.

Offline

#8 2018-11-08 17:59:57

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,424
Website

Re: [SOLVED] Unable to read certain unicode (I assume) characters.

Read the Code of Conduct and only post thumbnails http://wiki.archlinux.org/index.php/Cod … s_and_code


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#9 2018-11-08 18:21:07

loqs
Member
Registered: 2014-03-06
Posts: 17,195

Re: [SOLVED] Unable to read certain unicode (I assume) characters.

stat /etc/fonts/conf.d/70-no-bitmaps.conf

Offline

#10 2018-11-08 21:06:40

seth
Member
Registered: 2012-09-03
Posts: 49,985

Re: [SOLVED] Unable to read certain unicode (I assume) characters.

Also, from the screenshot I'd assume an additional locale issue (one UTF-8 character seems resolved to two glyphs? - thus the T-shirt)

Offline

#11 2018-11-09 07:38:25

lightdarkx
Member
Registered: 2018-08-02
Posts: 9

Re: [SOLVED] Unable to read certain unicode (I assume) characters.

The output for

 stat /etc/fonts/conf.d/70-no-bitmaps.conf
File: /etc/fonts/conf.d/70-no-bitmaps.conf -> /etc/fonts/conf.avail/70-no-bitmaps.conf
  Size: 40              Blocks: 0          IO Block: 4096   symbolic link
Device: 805h/2053d      Inode: 1966087     Links: 1
Access: (0777/lrwxrwxrwx)  Uid: (    0/    root)   Gid: (    0/    root)
Access: 2018-11-08 22:02:51.789999942 +0530
Modify: 2018-06-05 06:14:09.719280888 +0530
Change: 2018-06-05 06:14:09.719280888 +0530
 Birth: -

Are you sure that you correctly installed siji?

Yes, I installed it from AUR using aurman. If the AUR package has no problem then it should be ok.

Also, from the screenshot I'd assume an additional locale issue (one UTF-8 character seems resolved to two glyphs? - thus the T-shirt)

It may be because of my terminal emulator(kitty). This happens for FontAwesome 5 icons also but the icons(from font awesome) are showning up in polybar without any problem.

jaysonwryan wrote:

Read the Code of Conduct and only post thumbnails

Sorry for the mistake. I will keep that in mind.

Last edited by lightdarkx (2018-11-09 07:42:08)

Offline

#12 2018-11-09 08:04:52

seth
Member
Registered: 2012-09-03
Posts: 49,985

Re: [SOLVED] Unable to read certain unicode (I assume) characters.

/etc/fonts/conf.d/70-no-bitmaps.conf -> /etc/fonts/conf.avail/70-no-bitmaps.conf

…think about it…

Offline

#13 2018-11-09 13:52:31

patrickziegler
Member
From: ::1
Registered: 2018-11-02
Posts: 29
Website

Re: [SOLVED] Unable to read certain unicode (I assume) characters.

Offline

#14 2018-11-09 14:27:43

lightdarkx
Member
Registered: 2018-08-02
Posts: 9

Re: [SOLVED] Unable to read certain unicode (I assume) characters.

…think about it…

Sorry, my knowledge of linux is limited. This did the trick.

sudo unlink /etc/fonts/conf.d/70-no-bitmaps.conf
sudo ln -s /etc/fonts/conf.avail/70-force-bitmaps.conf /etc/fonts/conf.d/

Thanks to all those who helped me.

Offline

#15 2018-11-09 15:40:04

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 29,445
Website

Re: [SOLVED] Unable to read certain unicode (I assume) characters.

Note that the first of those commands may have been sufficient.  If not, there is a 70-yes-bitmaps.conf provided by fontconfig.  I'm not sure what 70-force-bitmaps.conf is or where it came from (it doesn't belong to a repo package), but the name is concerning - it could cause other problems if it really does force bitmap font (only) matches.


"UNIX is simple and coherent..." - Dennis Ritchie, "GNU's Not UNIX" -  Richard Stallman

Offline

Board footer

Powered by FluxBB