You are not logged in.

#1 2014-07-13 10:31:07

magicloud
Member
Registered: 2014-06-17
Posts: 48

Is it possible to use different fonts for langs?

For example, I have SGI Screen (very good on English chars and symbols) and WenQY MicroHei (very good on Chinese chars and symbols), with locale of UTF-8. Then how to configure my X system to render English chars with former, and Chinese chars with later?

Last edited by magicloud (2014-07-14 04:44:52)

Offline

#2 2014-07-13 10:44:50

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: Is it possible to use different fonts for langs?

Offline

#3 2014-07-13 11:03:13

magicloud
Member
Registered: 2014-06-17
Posts: 48

Re: Is it possible to use different fonts for langs?

Yes, it does. Reading the wiki, suddenly I realized I could use English font first, then fallback to Chinese.
Thank you.

Offline

#4 2014-07-14 04:44:36

magicloud
Member
Registered: 2014-06-17
Posts: 48

Re: Is it possible to use different fonts for langs?

Neh, it is not working. Now when I specify xft:monospace, I get a pure English rendering, which shows Chinese as blank.

<?xml version='1.0'?>
<!DOCTYPE fontconfig SYSTEM 'fonts.dtd'>
<fontconfig>
<!-- <match target="pattern">
  <test qual="any" name="family"><string>Monospace</string></test>
  <edit name="family" mode="assign" binding="same"><string>Screen</string></edit>
  <edit name="family" mode="assign" binding="same"><string>WenQuanYi Micro Hei Mono</string></edit>
 </match> -->
 <match target="font">
  <edit mode="assign" name="rgba">
   <const>none</const>
  </edit>
 </match>
 <match target="font">
  <edit mode="assign" name="hinting">
   <bool>false</bool>
  </edit>
 </match>
 <match target="font">
  <edit mode="assign" name="hintstyle">
   <const>hintnone</const>
  </edit>
 </match>
 <match target="font">
  <edit mode="assign" name="antialias">
   <bool>true</bool>
  </edit>
 </match>
 <dir>~/.fonts</dir>
 <alias>
  <family>monospace</family>
  <prefer>
   <family>Screen</family>
   <family>WenQuanYi Micro Hei Mono</family>
  </prefer>
 </alias>
</fontconfig>

Offline

Board footer

Powered by FluxBB