Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

HI: How to set the default font for different language in the xubuntu?

For example, I am using xubuntu9.10(English release),and I do not like the default English and Chinese font.

I have tried to use "Application-setting-appearance-fonts" to edit the default font,however it just work for the English.

The default font of Chinese is "WenQuanYi Zen Hei". I do not like it. I want to use "Microsoft YaHei", I copy this file from my Win7 system.

And I tried remove the "WenQuanYi Zen Hei" by "sudo aptitude remove ttf-wqy",it show me it is successfully removed.

Also I have modify the file:

/etc/fonts/conf.avail/69-language-selector-zh-cn.conf 

to:

<fontconfig>

 <match target="pattern">
  <test qual="any" name="family">
   <string>serif</string>
  </test>
  <edit name="family" mode="prepend" binding="strong">
   <string>Microsoft YaHei</string>
   <string>AR PL UMing CN</string>
   <string>AR PL ShanHeiSun Uni</string>
   <string>Bitstream Vera Serif</string>
   <string>DejaVu Serif</string>
   <string>AR PL UKai CN</string>
   <string>AR PL ZenKai Uni</string>
  </edit>
 </match> 
 <match target="pattern">
  <test qual="any" name="family">
   <string>sans-serif</string>
  </test>
  <edit name="family" mode="prepend" binding="strong">
   <string>Bitstream Vera Sans</string>
   <string>Microsoft YaHei</string>
   <string>DejaVu Sans</string>
   <string>AR PL UMing CN</string>
   <string>AR PL ShanHeiSun Uni</string>
   <string>AR PL UKai CN</string>
   <string>AR PL ZenKai Uni</string>
  </edit>
 </match> 
 <match target="pattern">
  <test qual="any" name="family">
   <string>monospace</string>
  </test>
  <edit name="family" mode="prepend" binding="strong">
   <string>Bitstream Vera Sans Mono</string>
   <string>Microsoft YaHei</string>
   <string>DejaVu Sans Mono</string>
   <string>AR PL UMing CN</string>
   <string>AR PL ShanHeiSun Uni</string>
   <string>AR PL UKai CN</string>
   <string>AR PL ZenKai Uni</string>
  </edit>
 </match> 

</fontconfig>

However when I use the firefox, I found the title of the firefox window is not YaHei.

See the image here

So what is the problem?

share|improve this question

migrated from serverfault.com Apr 25 '10 at 19:52

This question came from our site for professional system and network administrators.

    
Well the fonts in the browser are an entirely different issue. You'll have to configure them in the browser (in about:config for full fallback font resolution). The only oddness in the screenshot is that Firefox's title bar isn't using the normal desktop font. (This question should be at superuser.com really.) –  bobince Apr 24 '10 at 16:22
    
@bobince-Sorry, I found some questions about linux,here,so I post the problems here,well is it necessary to remove this post? –  ubuntu Apr 25 '10 at 2:29

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.