You are not logged in.

#1 2023-09-01 02:52:24

syqwq
Member
Registered: 2023-09-01
Posts: 1

Why my fallback font didn't work even though i followed the wiki

i followed the font config part of arch wiki
Fonts and Fonts config

i made the ln -s

$ ln -s /usr/share/fontconfig/conf.avail/51-local.conf $XDG_CONFIG_HOME/fontconfig/conf.d
$ ln -s /usr/share/fontconfig/conf.avail/50-user.conf  $XDG_CONFIG_HOME/fontconfig/conf.d

and make the `~/.config/fontconfig/fonts.conf` and `conf.d/`

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

<fontconfig>
<alias>
  <family>sans-serif</family>
  <prefer>
   <family>JetBrains Mono Nerd Font</family>
   <!-- <family>Noto Sans</family> -->
   <family>Source Han Sans CN</family>
   <family>Noto Emoji</family>
  </prefer>
 </alias>

 <alias>
  <family>serif</family>
  <prefer>
   <family>JetBrains Mono Nerd Font</family>
   <!-- <family>Noto Serif</family> -->
   <family>Source Han Serif CN</family>
   <family>Noto Emoji</family>
  </prefer>
 </alias>

 <alias>
  <family>monospace</family>
  <prefer>
   <family>JetBrains Mono Nerd Font</family>
   <!-- <family>JetBrains Mono Nerd Font</family> -->
   <family>Source Han Serif CN</family>
   <family>Noto Emoji</family>
  </prefer>
 </alias>
</fontconfig>

i want use source han fonts to display chinese while jetbrains mono for eng, but the chinese character cannot be rendered properly. i mean some of the character are rendered correctly but in jetbrains font........ while the others are just blank. QwQ
For example, the "你好" in my kitty will be like "  好"
i guess the reason is that jetbrains font is not a complete font for eng?
idk how to fix this QwQ

Offline

#2 2023-09-01 06:45:52

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

Re: Why my fallback font didn't work even though i followed the wiki

Please report your thread to be moved into the newbie corner or maybe applications, https://bbs.archlinux.org/misc.php?report=2118321

You should not have to add user-local shadows for those two configs:

ls /usr/share/fontconfig/conf.default/5{0,1}*

Is the problem limited to kitty?

fc-list :charset=4f60
fc-match -s :charset=4f60
FC_DEBUG=4 pango-view --font="monospace" -t "你" | grep family:

Offline

#3 2023-09-01 14:44:12

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

Re: Why my fallback font didn't work even though i followed the wiki

Moved to Newbie Corner.


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

Board footer

Powered by FluxBB