zcambridge的个人空间 https://blog.eetop.cn/soc [收藏] [复制] [分享] [RSS]

空间首页 动态 记录 日志 相册 主题 分享 留言板 个人资料

日志

[ZZ]只用windows字体

已有 1392 次阅读| 2007-1-28 11:32 |个人分类:ubuntu

天气: 晴朗
心情: 高兴
又一篇好文章。我只是在/etc/fonts/language-selector.conf的修改上作了小改动。。
[分享]+[半原创]将Ubuntu的界面美化到和MS windows的一样[附效果拷屏图]
http://forum.ubuntu.org.cn/about19325.html


首先要说明的是,我也是一个新人。也是在论坛中看了不少贴子后才会了一些东西。然后将自己的一些心得发上来,希望对大家有所帮助。

首先是将系统装好。在字体中设置原到的10号全部成9号,效果不太理想。

然后按按照论坛中 Vstar达人的 引用:
[分享]我的字体美化方案(Dapper+WQY+MSfont)

http://forum.ubuntu.org.cn/viewtopic.php?t=18638进行。

这里我省略了他的第一个步骤,直接从第二步开始。
因为我不太喜欢文泉驿的字体,还是习惯MS的宋体+Thoma的字体组合,或是再加上Verdana字体。
如果有版权问题,还是请使用文泉驿的字体比较好,使用MS的字体还是会有版权方面的问题。这里只是给看习惯了MS Windows 操作系统界面的朋友提供一个美化方法。

1、安装MS字体
cd /usr/share/fonts
sudo mkdir zh_CN
然后将MS的字体文件(simsun.ttc tahoma.ttf verdana.ttf verdanab.ttf verdanaz.ttf tahomabd.ttf verdanai.ttf)复制到zh_CN目录下,
引用:
sudo cp /media/winOS/windows/Fonts/* /usr/share/fonts/zh_CN/

*代表simsun.ttc tahoma.ttf verdana.ttf verdanab.ttf verdanaz.ttf tahomabd.ttf verdanai.ttf等等

然后
引用:
cd zh_CN
sudo mkfontscale
sudo mkfontdir
sudo fc-cache



注意,有不少朋友反映重启后,出现乱码,所以如果不以是root身份登录到系统进行修改的,而只是用sudo的方式建议再使用下面的命令,修改新增加的字体的权限
sudo chmod 644 /usr/share/fonts/zh_CN/*

2、修改language-selector.conf文件
引用:
sudo gedit /usr/share/language-selector/fontconfig/zh_CN_custom


使用下面的代码替换掉里面的全部内容 ,注意,我这里没有按照Vstar的把文泉驿字体放到第二位,而是直接把宋体(Siumu)放到第二位,因为没有用文泉驿的字体,所以把文泉驿的字体那个family和string项都删除了。这样一来,如果系统中要使用中文字体,首先用到的就是宋体。
引用:
<fontconfig>

<alias>

<family>serif</family>

<prefer>

<family>Bitstream Vera Serif</family>
<family>SimSun</family>
<family>DejaVu Serif</family>
<family>AR PL ShanHeiSun Uni</family>
<family>AR PL ZenKai Uni</family>

</prefer>

</alias>

<alias>

<family>sans-serif</family>

<prefer>

<family>Bitstream Vera Sans</family>
<family>Simsun</family>
<family>DejaVu Sans</family>
<family>AR PL ShanHeiSun Uni</family>
<family>AR PL ZenKai Uni</family>

</prefer>

</alias>


<alias>

<family>monospace</family>

<prefer>

<family>Bitstream Vera Sans Mono</family>
<family>Simsun</family>
<family>DejaVu Sans Mono</family>
<family>AR PL ShanHeiSun Uni</family>
<family>AR PL ZenKai Uni</family>

</prefer>

</alias>


<match target="font" >

<test name="family" compare="contains" >
<string>SimSun</string>
<string>Song</string>
<string>Sun</string>
<string>Kai</string>
<string>Ming</string>
</test>
<test name="weight" compare="less_eq">
<int>100</int>
</test>

<test compare="more_eq" target="pattern" name="weight" >

<int>180</int>

</test>

<edit mode="assign" name="embolden" >

<bool>true</bool>

</edit>

</match>

<match target="font" >
<test name="family" compare="contains" >
<string>SimSun</string>
<string>宋体</string>
<string>宋体-18030</string>
<string>Song</string>
<string>Sun</string>
<string>Kai</string>
<string>Ming</string>
<string>黑体</string>
<string>新宋体</string>
<string>新宋体-18030</string>
<string>楷体_GB2312</string>
<string>仿宋_GB2312</string>
<string>隶体</string>
<string>SimSun-18030</string>
<string>SimHei</string>
<string>NSimSun</string>
<string>NSimSun-18030</string>
<string>KaiTi_GB2312</string>
<string>FangSong_GB2312</string>
<string>LiSu</string>
</test>

<edit name="globaladvance">

<bool>false</bool>

</edit>

<edit name="spacing">

<int>0</int>

</edit>

<edit name="hinting">

<bool>true</bool>

</edit>

<edit name="autohint">

<bool>false</bool>

</edit>

<edit name="antialias" mode="assign">

<bool>true</bool>

</edit>

<test name="pixelsize" compare="more_eq">

<int>12</int>

</test>
<test name="pixelsize" compare="less_eq">

<int>24</int>

</test>
<edit name="antialias" mode="assign" >

<bool>false</bool>

</edit>
</match>

</fontconfig>

重新连接conf文件到zh_CN_custom
引用:
sudo unlink /etc/fonts/language-selector.conf
sudo ln -s /usr/share/language-selector/fontconfig/zh_CN_custom /etc/fonts/language-selector.conf

看看是不是变了。。
sudo gedit /etc/fonts/language-selector.conf

真的变了,就可以了。。

3、按Ctrl+Alt+Backspace重启X-windows,应该是这样的功能吧。呵呵。
然后再到“系统”“首选项”“字体”中进行设置,注意,设置中还是有一些重要的地方,不然效果还是不太理想。

注意1、在字体选项中
字体全部设置为9号,如果效果和MS Windows的效果不太一样,请全部选择使用THOMA字体,然后全部设置为8号,如下图
 
注意2、在字体渲染选细节中“平滑”要选“无”,这个很重要,不然英文字体会发虚。
如下图
 

4、这个是最终效果
 

另外,如果有兴趣,可以把Firefox中的字体也设置一下,网页的字体也会比较好看。
我设置的如下。
 
在“高级”中设置如下:
 

这个设置简单明了。爽 !!

点赞

发表评论 评论 (2 个评论)

Guest 2007-4-9 13:47
http://db8373f1c8cfcd52abba430bce70192d-t.rh5t5bf.info <a href="http://db8373f1c8cfcd52abba430bce70192d-h.rh5t5bf.info">db8373f1c8cfcd52abba430bce70192d</a> [url]http://db8373f1c8cfcd52abba430bce70192d-b1.rh5t5bf.info[/url] [url=http://db8373f1c8cfcd52abba430bce70192d-b2.rh5t5bf.info]db8373f1c8cfcd52abba430bce70192d[/url] [u]http://db8373f1c8cfcd52abba430bce70192d-b3.rh5t5bf.info[/u] 0c4df95de00b5aa0f800bcc958a3b7df
Guest 2007-5-1 09:37
http://03a02a288defc05dd9e723afb6d5f3ca-t.k90u0h.info <a href="http://03a02a288defc05dd9e723afb6d5f3ca-h.k90u0h.info">03a02a288defc05dd9e723afb6d5f3ca</a> [url]http://03a02a288defc05dd9e723afb6d5f3ca-b1.k90u0h.info[/url] [url=http://03a02a288defc05dd9e723afb6d5f3ca-b2.k90u0h.info]03a02a288defc05dd9e723afb6d5f3ca[/url] [u]http://03a02a288defc05dd9e723afb6d5f3ca-b3.k90u0h.info[/u] 86b4eaaaf8201e29470f084ce1d2d695

facelist

您需要登录后才可以评论 登录 | 注册

  • 关注TA
  • 加好友
  • 联系TA
  • 0

    周排名
  • 0

    月排名
  • 0

    总排名
  • 0

    关注
  • 3

    粉丝
  • 0

    好友
  • 8

    获赞
  • 34

    评论
  • 468

    访问数
关闭

站长推荐 上一条 /2 下一条

小黑屋| 关于我们| 联系我们| 在线咨询| 隐私声明| EETOP 创芯网
( 京ICP备:10050787号 京公网安备:11010502037710 )

GMT+8, 2024-4-24 09:14 , Processed in 0.045874 second(s), 15 queries , Gzip On, Redis On.

eetop公众号 创芯大讲堂 创芯人才网
返回顶部