请帮忙将升级后的language-selector.conf内容贴出来

重复贴和参考价值不大的帖子,版主维护
回复
joo.tsao
帖子: 37
注册时间: 2007-03-18 22:39
送出感谢: 0
接收感谢: 0

请帮忙将升级后的language-selector.conf内容贴出来

#1

帖子 joo.tsao » 2007-09-30 0:50

请帮忙将升级后的/etc/fonts/language-selector.conf内容贴出来给我看看默认的是怎样,我的搞乱啦。
wucongkun
帖子: 251
注册时间: 2006-11-10 20:27
送出感谢: 0
接收感谢: 0

#2

帖子 wucongkun » 2007-09-30 7:56

language-selector都是链接 链接到/usr/share/language-selector/fontconfig/zh_CN
我的也弄乱了 今天才折腾好。
给你两个吧
一个修改过得 一个原版
其实这个原版我也是从论坛求来得
你对比看看
这个文件主要是设定了一些程序选择字体的顺序

原版

代码: 全选

<fontconfig>

	<alias>

                <family>serif</family>

                <prefer>

                        <family>Bitstream Vera Serif</family>

                        <family>DejaVu Serif</family>

                        <family>AR PL ShanHeiSun Uni</family>

                        <family>WenQuanYi Bitmap Song</family>

                        <family>AR PL ZenKai Uni</family>

                </prefer>

        </alias>

        <alias>

                <family>sans-serif</family>

                <prefer>

                        <family>Bitstream Vera Sans</family>

                        <family>DejaVu Sans</family>

                        <family>AR PL ShanHeiSun Uni</family>

                        <family>WenQuanYi Bitmap Song</family>

                        <family>AR PL ZenKai Uni</family>

                </prefer>

        </alias>

        <alias>

                <family>monospace</family>

                <prefer>

                        <family>Bitstream Vera Sans Mono</family>

                        <family>DejaVu Sans Mono</family>

                        <family>AR PL ShanHeiSun Uni</family>

                        <family>WenQuanYi Bitmap Song</family>

                        <family>AR PL ZenKai Uni</family>

                </prefer>

        </alias>

        <match target="font" >

                <test name="family" compare="contains" >

                        <string>Song</string>

                        <string>Sun</string>

                        <string>Kai</string>

                        <string>Ming</string>

                </test> 

                <!-- check to see if the font is just regular -->

                <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>Song</string>

                        <string>Sun</string>

                        <string>Kai</string>

                        <string>Ming</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="less_eq">

                        <int>18</int>

                </test>

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

                        <bool>false</bool>

                </edit>

        </match>

</fontconfig>
修改版

代码: 全选

<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>

[/quote]
joo.tsao
帖子: 37
注册时间: 2007-03-18 22:39
送出感谢: 0
接收感谢: 0

#3

帖子 joo.tsao » 2007-09-30 16:52

谢谢!
回复

回到 “归档贴”