|
楼主 |
发表于 2006-8-15 18:23:36
|
显示全部楼层
Post by hihihihi
找到flashplayer亂碼的solution了.....
defoma-hints -c --no-question truetype /usr/share/fonts/truetype/winxp/mingliu.ttc > /etc/defoma/hints/winxp.hints
defoma-font reregister-all /etc/defoma/hints/winxp.hints
reboot
Good!
上次你谈这个问题的时候,我网上找过:
http://linux.inet.hr/flash_plugin_on_x11r7.html
看他们的讨论,flashplugin 字体和 xfs 有关,而不是和 fontconfig 有关。
但不清楚到底问题出在何处,现在终于明白问题出在哪了 :)
我一般一开始就把 simsun, mingliu 用 defoma 管理,从而让 xfs 知道我要用这些字体,因为我要使用 xmms 这个 gtk1 程序,虽然很多人不屑用这个播放器。
像微软核心字体,下载后,自动会调用 defoma 来管理,而 defoma 除了把这些字体信息提供给 fontconfig 外,还把它们提供给 xfs。
我在主贴里提到在 xorg.conf 加入FontPath "/usr/share/fonts/myfonts/winxp"
从而让 xfs 找到 winxp 字体路径,目的也就在此,否则你用 xlsfonts 是看不到 mingliu 的。
对于 defoma,我有更好的建议,可以使用 dfontmgr 把 simsun 或 mingliu 注册到defoma。
或拷贝我的 hints,如下:
simsun.hints- category truetype
- begin /usr/share/fonts/myfonts/winxp/simsun.ttc
- FaceNum = 2
- Family = SimSun
- FontName = SimSun-Regular
- Encoding = Unicode
- Location = English Chinese-China
- Charset = GB2312 GBK GB18030 ISO8859-1
- GeneralFamily = Roman
- Weight = Book
- Width = Variable
- Shape = Serif Upright
- Foundry = zhongyi
- Priority = 20
- Family1 = NSimSun
- FontName1 = NSimSun-Regular
- Encoding1 = Unicode
- Location1 = English Chinese-China
- Charset1 = GB2312 GBK GB18030 ISO8859-1
- GeneralFamily1 = Roman
- Weight1 = Book
- Width1 = Variable
- Shape1 = Serif Upright
- Foundry1 = zhongyi
- Priority1 = 20
- end
复制代码 mingliu.hints- category truetype
- begin /usr/share/fonts/myfonts/winxp/mingliu.ttc
- FaceNum = 2
- Family = MingLiU
- FontName = MingLiU-Regular
- Encoding = Unicode
- Location = English Chinese-Taiwan
- Charset = BIG5 ISO8859-1
- GeneralFamily = Roman
- Weight = Book
- Width = Variable
- Shape = Serif Upright
- Foundry = dynalab
- Priority = 20
- Family1 = PMingLiU
- FontName1 = PMingLiU-Regular
- Encoding1 = Unicode
- Location1 = English Chinese-Taiwan
- Charset1 = BIG5 ISO8859-1
- GeneralFamily1 = Roman
- Weight1 = Book
- Width1 = Variable
- Shape1 = Serif Upright
- Foundry1 = dynalab
- Priority1 = 20
- end
复制代码- $ defoma-font reregister-all simsun.hints
- $ defoma-font reregister-all mingliu.hints
复制代码 不需要重启,退出 X,login 后,用:- $ xlsfonts |grep simsun
- -zhongyi-nsimsun-book-r-normal--0-0-0-0-p-0-gb18030.2000-0
- -zhongyi-nsimsun-book-r-normal--0-0-0-0-p-0-gb2312.1980-0
- -zhongyi-nsimsun-book-r-normal--0-0-0-0-p-0-gbk-0
- -zhongyi-nsimsun-book-r-normal--0-0-0-0-p-0-iso8859-1
- -zhongyi-simsun-book-r-normal--0-0-0-0-p-0-gb18030.2000-0
- -zhongyi-simsun-book-r-normal--0-0-0-0-p-0-gb2312.1980-0
- -zhongyi-simsun-book-r-normal--0-0-0-0-p-0-gbk-0
- -zhongyi-simsun-book-r-normal--0-0-0-0-p-0-iso8859-1
- $ xlsfonts |grep mingliu
- -dynalab-mingliu-book-r-normal--0-0-0-0-p-0-big5-0
- -dynalab-mingliu-book-r-normal--0-0-0-0-p-0-iso8859-1
- -dynalab-pmingliu-book-r-normal--0-0-0-0-p-0-big5-0
- -dynalab-pmingliu-book-r-normal--0-0-0-0-p-0-iso8859-1
复制代码
我想系统中需要用到 xfs 的软件还是不少的,如你提到的 flashplugin,xmms,emacs21,gfontview,dfontmgr 等等。所以有必要做一下上述工作。
需要安装的软件:
x-ttcidfont-conf defoma
可选软件:
dfontmgr |
|