You are not logged in.
Pages: 1
Hi everybody ,
Hi have problem using hack font , the problem is that using urxvt-unicode hi didn't got the right font as in the image : https://image.ibb.co/gLFKsH/hack_urxvt.png urxvt
instead of the right character as in mate terminal as in this image : https://image.ibb.co/dn6y4x/mate_terminal.png
I remember that I had already have had this problem but i don't remember how did I fix it !
Offline
And how exactly did you configure the urxvt font?
How does fc-list identify the font?
Did you forget to run xrdb (in case)?
Offline
I wrote this in my .Xresources
urxvt*depth:32
urxvt*background: rgba:2000/2000/2000/cccc
URxvt.font: xft:Hack:size=11
URxvt.scrollBar_right: true
URxvt.cursorBlink: true
URxvt*.shading: 20
URxvt*foreground: white
URxvg*cursorColor: white
URxvt*saveLines: 7777
URxvt*scrollColor: #d1d4e0
URxvt*highlightColor: #252936
URxvt*highlightTextColor: #C0C5CE
URxvt*fading: 40
URxvt.perl-lib: /usr/lib64/urxvt/perl/
URxvt.keysym.M-u: perl:url-select:select_next
URxvt.url-select.launcher: /usr/bin/xdg-open
URxvt.url-select.underline: true
!URxvt.perl-ext-common: ...,resize-font,fullscreen,...
URxvt.keysym.F11: perl:fullscreen:switch
URxvt.resize-font.smaller: C-Down
URxvt.resize-font.bigger: C-Up
URxvt.letterSpace: -1.5then I gave
xrdb .Xresources Offline
How does fc-list identify the font?
Offline
fc-list | grep Hack
/usr/share/fonts/ttf-hack-ibx/Hack-BoldItalic.ttf: Hack:style=Bold Italic
/usr/share/fonts/ttf-hack-ibx/Hack-Italic.ttf: Hack:style=Italic
/home/mghiani/.fonts/Hack-Regular.ttf: Hack:style=Regular
/usr/share/fonts/TTF/Hack-Italic.ttf: Hack:style=Italic
/usr/share/fonts/TTF/Hack-Bold.ttf: Hack:style=Bold
/home/mghiani/.fonts/Hack-Bold.ttf: Hack:style=Bold
/usr/share/fonts/ttf-hack-ibx/Hack-Bold.ttf: Hack:style=Bold
/home/mghiani/.fonts/Hack-Italic.ttf: Hack:style=Italic
/home/mghiani/.fonts/Hack-BoldItalic.ttf: Hack:style=Bold Italic
/usr/share/fonts/TTF/Hack-BoldItalic.ttf: Hack:style=Bold Italic
/usr/share/fonts/ttf-hack-ibx/Hack-Regular.ttf: Hack:style=Regular
/usr/share/fonts/TTF/Hack-Regular.ttf: Hack:style=RegularOffline
I'd
xrdb -query | grep Hack
strace urxvt 2>&1 | grep Hackand see whether
a) the setting actually applies
b) the file is opened
Offline
I just installed ttf-hack and the font does NOT look like the font in the mate terminal shot (which has a very significant "m"), but indeed does look like the one in the urxvt shot. Why do you think the font is not ion use?
Offline
sorry SETH which file should be opened ? when I run this 2 command that you post nothing happens and nothing change !
Offline
you have hack font that works in urxvt or not ? In this installation doesn't works (as in image) but in other 4 PC with Arch and urxvt it works perfectely
Offline
One of the ttf files listed by fc-list; yes - Extra/ttf-hack works and again: your urxvt screenshot *very* much looks like this font. So why exactly do you believe it's not in use?
Offline
because as you see in my pictures my hack font doesn't works in urxvt
Offline
Yes, it does...
I'll take a limb and guess you're talking about the PS1 (ie. the UTF-8 misinterpretation, the arrow is rendered as "â")?
In case: that is not related to the font, check (and post and compare it to the other terminal)
echo $PS1
echo $TERM
echo $SHELL
locale
locale -a
localectlOffline
ââ[16:52] mghiani@ â[~]
âââ> echo $PS1
\[\033[0;37m\]\342\224\214\342\224\200$([[ $? != 0 ]] && echo "[\[\033[0;31m\]\342\234\227\[\033[0;37m\]]\342\224\200")[\A] \[\033[0;96m\]\u\[\033[38;5;1m\]@ \[\033[0;37m\]\342\224\200[\[\033[0;32m\]\w\[\033[0;37m\]]\n\[\033[0;37m\]\342\224\224\342\224\200\342\224\200\076 \[\033[0m\]ââ[16:55] mghiani@ â[~]
âââ> echo $TERM
rxvt-unicode-256colorââ[16:55] mghiani@ â[~]
âââ> locale
LANG=it_IT.UTF-8
LC_CTYPE="it_IT.UTF-8"
LC_NUMERIC="it_IT.UTF-8"
LC_TIME="it_IT.UTF-8"
LC_COLLATE=C
LC_MONETARY="it_IT.UTF-8"
LC_MESSAGES="it_IT.UTF-8"
LC_PAPER="it_IT.UTF-8"
LC_NAME="it_IT.UTF-8"
LC_ADDRESS="it_IT.UTF-8"
LC_TELEPHONE="it_IT.UTF-8"
LC_MEASUREMENT="it_IT.UTF-8"
LC_IDENTIFICATION="it_IT.UTF-8"
LC_ALL=âââ> locale -a
C
POSIX
en_GB
en_GB.iso88591
en_GB.utf8
en_US
en_US.iso88591
en_US.utf8
it_IT
it_IT.iso88591
it_IT.iso885915@euro
it_IT.utf8
it_IT@euro
italianâââ> localectl
System Locale: LANG=en.US.UTF-8
VC Keymap: n/a
X11 Layout: n/aOffline
$SHELL and output differences in the other terminal?
I do not have too much experience w/ it_IT.UTF-8, but you've a different system locale (suspicious) and also "en.US.UTF-8" should be "en_US.UTF-8", so something is certainly fishy here.
Offline
and how can I fix it ?
Offline
You mean your system locale? The way you set it when installing archlinux, just this time using the proper value.
However it's not used in that shell anyway, so the more relevant question is about the used $SHELL and differences between the shell environments in either VTE.
Offline
I don't understand, how I can fix it ?
Offline
Fix what? The system locale?
How did you install archlinux?
Offline
solved
Offline
solved
Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
The shortest way to ruin a country is to give power to demagogues.— Dionysius of Halicarnassus
---
How to Ask Questions the Smart Way
Offline
I've left the font downloaded and copied in the .fonts folder and install from aur ttf-hack .. than the rendering of the fonts looks right !
Offline
There is no ttf-hack package in AUR and apparently you already had Extra/ttf-hack and ttf-hack-ibx installed; and the font seemed to have rendered totally fine before (and you never really detailed on your actual issue, the "â" is not a misrendering, but a misinterpretation of the UTF-8 byte)
Offline
Pages: 1