You are not logged in.

#1 2018-02-26 18:18:41

KylieGS
Member
Registered: 2018-02-19
Posts: 53

Defining fallback fonts [SOLVED]

For custom characters in my polybar I'm using the user defined section of Unicode. Polybar will show the characters fine but my terminal (URXVT) does not. How to I set up my font as a fallback for if it can't find the character in the primary font. I've tried using fontlists in .Xresources

URxvt*Font:         xft:NotoSansMono:pixelsize=12,xft:WunconSiji:pixelsize=12 

But it does not seem to change anything.
I've also ajusted /etc/fonts/local.conf to

<?xml version="1.0"?>
<!DOCTYPE fontconfig SYSTEM "fonts.dtd">
<fontconfig>

<alias>
   <family>NotoSansMono</family>    
   <prefer>
     <family>NotoSansMono</family>       
     <family>WunconSiji</family>   
   </prefer>
 </alias>
</fontconfig>

None work as I want them to

Last edited by KylieGS (2018-02-26 20:48:52)

Offline

#2 2018-02-26 20:51:43

KylieGS
Member
Registered: 2018-02-19
Posts: 53

Re: Defining fallback fonts [SOLVED]

Solved by using the xlfd definition in .Xresources.

! fonts
*.font     :    xft:NotoSansMono:pixelsize=12, \
                 -wuncon-siji-medium-r-normal-*-10-100-75-75-c-80-iso10646-1

*.boldFont : xft:NotoSansMono:bold:pixelsize=12, \
                -wuncon-siji-medium-r-normal-*-10-100-75-75-c-80-iso10646-1

Offline

#3 2018-02-26 20:54:53

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

Re: Defining fallback fonts [SOLVED]

https://bbs.archlinux.org/viewtopic.php … 7#p1734717 ?

Last edited by seth (2018-02-26 20:55:21)

Offline

Board footer

Powered by FluxBB