Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
How to change Chinese font in firefox to "songti" ?
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index 中文 (Chinese)
View previous topic :: View next topic  
Author Message
naturegirl
n00b
n00b


Joined: 11 Mar 2006
Posts: 35
Location: Beijing

PostPosted: Fri Sep 07, 2007 12:22 pm    Post subject: How to change Chinese font in firefox to "songti" Reply with quote

大家好,
我用firefox浏览中文网页时,字体总是楷体而且非常模糊,看起来特别难受。你们知道我怎样才可以把它改成宋体吗?英文好像叫simsum.我在firefox的preferences里面改过,可是没有用处。
我用的firefox是英文板的,desktop manager是enlightenment.
谢谢啦!
Back to top
View user's profile Send private message
Halahad
n00b
n00b


Joined: 15 Mar 2005
Posts: 57
Location: Shanghai, PRC

PostPosted: Fri Sep 07, 2007 12:53 pm    Post subject: Reply with quote

中文用户一般都是修改过fontconfig的配置文件,更改了字体的替换规则,
有个简便的方法是
emerge media-fonts/wqy-bitmapfont
然后
cd /etc/fonts/conf.d/
ln -sf ../conf.avail/85-wqy-bitmapsong.conf ./85-wqy-bitmapsong.conf

Firefox中应该无须变更字体。

注:参照Debian的做法。应该是没有问题的。尝试下。;-)
Back to top
View user's profile Send private message
naturegirl
n00b
n00b


Joined: 11 Mar 2006
Posts: 35
Location: Beijing

PostPosted: Fri Sep 07, 2007 3:06 pm    Post subject: Reply with quote

我emerge以后找不到那个文件。当时它警告我说是masked的,可是emerge应该没有出什么问题:
Code:

nulix naturegirl # cat /var/log/emerge.log
[...]
1189177441: Started emerge on: Sep 07, 2007 15:04:01
1189177441:  *** emerge  media-fonts/wqy-bitmapfont
1189177442:  >>> emerge (1 of 1) media-fonts/wqy-bitmapfont-0.7.0-r1 to /
1189177442:  === (1 of 1) Cleaning (media-fonts/wqy-bitmapfont-0.7.0-r1::/usr/po
rtage/media-fonts/wqy-bitmapfont/wqy-bitmapfont-0.7.0-r1.ebuild)
1189177442:  === (1 of 1) Compiling/Merging (media-fonts/wqy-bitmapfont-0.7.0-r1
::/usr/portage/media-fonts/wqy-bitmapfont/wqy-bitmapfont-0.7.0-r1.ebuild)
1189177478:  === (1 of 1) Updating world file (media-fonts/wqy-bitmapfont-0.7.0-
r1)
1189177478:  >>> AUTOCLEAN: media-fonts/wqy-bitmapfont
1189177478:  --- AUTOCLEAN: Nothing unmerged.
1189177478:  === (1 of 1) Post-Build Cleaning (media-fonts/wqy-bitmapfont-0.7.0-
r1::/usr/portage/media-fonts/wqy-bitmapfont/wqy-bitmapfont-0.7.0-r1.ebuild)
1189177478:  ::: completed emerge (1 of 1) media-fonts/wqy-bitmapfont-0.7.0-r1 t
o /
1189177478:  *** Finished. Cleaning up...
1189177478:  *** exiting successfully.
1189177478:  *** terminating.

可是还是没有你说的文件:
Code:

nulix conf.d # ls /etc/fonts/conf.avail/
10-autohint.conf        20-fix-globaladvance.conf  50-user.conf           70-yes-bitmaps.conf
10-no-sub-pixel.conf    20-lohit-gujarati.conf     51-local.conf          80-delicious.conf
10-sub-pixel-bgr.conf   20-unhint-small-vera.conf  60-latin.conf          90-synthetic.conf
10-sub-pixel-rgb.conf   30-amt-aliases.conf        65-fonts-persian.conf  README
10-sub-pixel-vbgr.conf  30-urw-aliases.conf        65-nonlatin.conf
10-sub-pixel-vrgb.conf  40-generic.conf            69-unifont.conf
10-unhinted.conf        49-sansserif.conf          70-no-bitmaps.conf
nulix conf.d #


你说的fontconfig是怎么修改的?因为那个字体应该已经在了啊:

Code:

nulix conf.d # fc-list |grep "WenQuanYi"
WenQuanYi Bitmap Song:style=Bold
WenQuanYi Bitmap Song:style=Regular
nulix conf.d # 
Back to top
View user's profile Send private message
iblicf
n00b
n00b


Joined: 19 Aug 2007
Posts: 18
Location: beijing china

PostPosted: Thu Sep 13, 2007 3:38 pm    Post subject: Reply with quote

把字体文件 simsun.ttf or yahei.ttf copy 到 ~/.fonts 下边 , firefox / edit / preference / content 改一下字体就行了 ,
我是这么做的,gnome-desktop
Back to top
View user's profile Send private message
SnEptUne
l33t
l33t


Joined: 23 Aug 2004
Posts: 656

PostPosted: Fri Sep 14, 2007 12:58 am    Post subject: Reply with quote

You can also change it by going to about:config

And change the variables \font.name.[sans-serif|serif].[zh-TW|zh-HK|zh-CN]\ to "AR PL KaitiM Big5", 文鼎PL細上海宋, or whatever fonts you like.
_________________
"There will be more joy in heaven over the tear-bathed face of a repentant sinner than over the white robes of a hundred just men." (LM, 114)
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index 中文 (Chinese) All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum