大家来看一看这个是因为什么?

需要面对面帮助?请寻求当地校园社团支持!
回复
christana_lxy
帖子: 3
注册时间: 2009-06-16 17:20

大家来看一看这个是因为什么?

#1

帖子 christana_lxy »

我的浏览器进入ubuntu后,别的网站均正常,可是一进视频网站就会出现这个现象,大家来解决一下。
sendpix0.jpg
您没有权限查看这个主题的附件。
头像
yingtianli
帖子: 631
注册时间: 2008-09-20 14:27

Re: 大家来看一看这个是因为什么?

#2

帖子 yingtianli »

ubuntu装好之后, 为浏览器firefox安装flash插件, 后来发现中文会变成方框。

如何解决?

输入:
cd /etc/fonts/conf.d/

为了安全,备份一下:

sudo cp 49-sansserif.conf 49-sansserif.conf_backup

输入如下指令:

sudo gedit ./49-sansserif.conf

此时文件显示内容。

将其中的第1、2、4个后面的sans-serif或者serif用你自己系统中支持中文的字体的名字代替,注意字体名字的大小写

比如:我的系统中安装了wqy-zenhei.ttf,我则用wqy-zenhei代替上述所说的字段,结果如下:

<match target=”pattern”>
<test qual=”all” name=”family” compare=”not_eq”>
<string>wqy-zenhei</string>
</test>
<test qual=”all” name=”family” compare=”not_eq”>
<string>wqy-zenhei</string>
</test>
<test qual=”all” name=”family” compare=”not_eq”>
<string>monospace</string>
</test>
<edit name=”family” mode=”append_last”>
<string>wqy-zenhei</string>
</edit>
</match>
使我介然有知,行于大道,唯施是畏。大道甚夷,而民好径。朝甚除,田甚芜,仓甚虚;服文彩,带佩剑,厌饮食,财货有馀。是谓盗竽,非道也哉!
christana_lxy
帖子: 3
注册时间: 2009-06-16 17:20

Re: 大家来看一看这个是因为什么?

#3

帖子 christana_lxy »

回复二楼:
这个方法我试过了,用的是文泉驿字体,但是解决不了问题,还是要谢谢你啊。呵呵
头像
nuanhuai
帖子: 7813
注册时间: 2009-03-10 13:04

Re: 大家来看一看这个是因为什么?

#4

帖子 nuanhuai »

ls的多看看坛子里相关帖子,总可以解决的
头像
yingtianli
帖子: 631
注册时间: 2008-09-20 14:27

Re: 大家来看一看这个是因为什么?

#5

帖子 yingtianli »

把我的/49-sansserif.conf贴给你。


<?xml version="1.0"?>
<!DOCTYPE fontconfig SYSTEM "fonts.dtd">
<fontconfig>
<!--
If the font still has no generic name, add sans-serif
-->
<match target="pattern">
<test qual="all" name="family" compare="not_eq">
<string>sans-serif</string>
</test>
<test qual="all" name="family" compare="not_eq">
<string>serif</string>
</test>
<test qual="all" name="family" compare="not_eq">
<string>monospace</string>
</test>
<edit name="family" mode="append_last">
<string>sans</string>
</edit>
</match>
</fontconfig>
使我介然有知,行于大道,唯施是畏。大道甚夷,而民好径。朝甚除,田甚芜,仓甚虚;服文彩,带佩剑,厌饮食,财货有馀。是谓盗竽,非道也哉!
回复