You are not logged in.

#1 2019-01-22 11:16:10

drudox
Member
Registered: 2017-10-01
Posts: 146

[SOLVED] wrong fonts visualization urxvt/xterm

Hi all , I'm use i3wm and urxvt / termiite / xterm as terminal emulator.
If I run urxvt or xterm from keyboard shortcut the fonts is not properly visualized ..
for example using zsh-themes af-magic i visualize

~ »

but if I run it from terminal (using command $ urxvt) i visualize the correct result :

~ »

this happens with xterm as well, what I describe above is just an example .. a lot of characters are visualized wrong
I would like to fix it and obtain the correct font from terminal that runs from keyboard shortcut!

May somebody help me about ?

Last edited by drudox (2019-01-22 17:33:42)

Offline

#2 2019-01-22 12:55:58

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 77,796

Re: [SOLVED] wrong fonts visualization urxvt/xterm

Fix your locale, https://wiki.archlinux.org/index.php/Locale - no, entries in ~/.bashrc do not cut it.

Online

#3 2019-01-22 16:20:26

drudox
Member
Registered: 2017-10-01
Posts: 146

Re: [SOLVED] wrong fonts visualization urxvt/xterm

seth wrote:

Fix your locale, https://wiki.archlinux.org/index.php/Locale - no, entries in ~/.bashrc do not cut it.

I've read the link ! and I've configured the /etc/locale.conf as follow:

LANG=en_US.UTF-8
LANGUAGE=en_US:en_GB:en
LC_TIME=en_US.UTF-8
LC_COLLATE=C

but nothing change .. I don't understand what you said about .bashrc !
thanks for your help

Offline

#4 2019-01-22 16:41:18

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 77,796

Re: [SOLVED] wrong fonts visualization urxvt/xterm

Sicne it apparently makes a difference whether the terminal is started from some interactive textshell or the desktop shell, there's a good chance that the proper environment is only set in some local shell config (bashrc)


Compare

cat /proc/$PPID/environ  | tr '\0' '\n' | grep -E '(LC_|LANG)'

for a good and a bad terminal.

Also please notice that merely editing the locale.conf is not sufficient, you'll at least have to restart the desktop shell, in doubt reboot.

Online

#5 2019-01-22 17:32:58

drudox
Member
Registered: 2017-10-01
Posts: 146

Re: [SOLVED] wrong fonts visualization urxvt/xterm

Thank you very much ! after reboot terminal's font are correctly !!

Offline

#6 2019-01-22 17:33:41

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 77,796

Re: [SOLVED] wrong fonts visualization urxvt/xterm

Please always remember to mark resolved threads by editing your initial posts subject - so others will know that there's no task left, but maybe a solution to find.
Thanks.

Online

Board footer

Powered by FluxBB