You are not logged in.

#1 2018-04-07 18:53:08

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

problem with font hack

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

#2 2018-04-07 19:47:22

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

Re: problem with font hack

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

#3 2018-04-07 20:48:56

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

Re: problem with font hack

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.5

then I gave

 xrdb .Xresources 

Offline

#4 2018-04-07 20:51:28

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

Re: problem with font hack

seth wrote:

How does fc-list identify the font?

Offline

#5 2018-04-07 20:53:29

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

Re: problem with font hack

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=Regular

Offline

#6 2018-04-07 20:58:50

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

Re: problem with font hack

I'd

xrdb -query | grep Hack
strace urxvt 2>&1 | grep Hack

and see whether
a) the setting actually applies
b) the file is opened

Offline

#7 2018-04-07 21:27:35

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

Re: problem with font hack

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

#8 2018-04-08 11:25:25

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

Re: problem with font hack

sorry SETH which file should be opened ? when I run this 2 command that you post nothing happens and nothing change !

Offline

#9 2018-04-08 11:30:19

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

Re: problem with font hack

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

#10 2018-04-08 12:35:02

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

Re: problem with font hack

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

#11 2018-04-08 14:22:29

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

Re: problem with font hack

because as you see in my pictures my hack font doesn't works in urxvt

Offline

#12 2018-04-08 14:29:14

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

Re: problem with font hack

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
localectl

Offline

#13 2018-04-08 16:37:57

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

Re: problem with font hack

ââ[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/a

Offline

#14 2018-04-08 16:55:16

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

Re: problem with font hack

$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

#15 2018-04-08 17:10:25

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

Re: problem with font hack

and how can I fix it ?

Offline

#16 2018-04-08 17:14:31

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

Re: problem with font hack

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

#17 2018-04-09 14:56:09

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

Re: problem with font hack

I don't understand, how I can fix it ?

Offline

#18 2018-04-09 15:01:51

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

Re: problem with font hack

Fix what? The system locale?
How did you install archlinux?

Offline

#19 2018-04-09 16:50:47

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

Re: problem with font hack

solved

Offline

#20 2018-04-09 17:20:02

ewaller
Administrator
From: Pasadena, CA
Registered: 2009-07-13
Posts: 20,721

Re: problem with font hack


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

#21 2018-04-09 19:12:32

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

Re: problem with font hack

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

#22 2018-04-09 19:36:27

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

Re: problem with font hack

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

Board footer

Powered by FluxBB