用了自由建客的fonts.conf(原封不动,未作修改版)之后,无论打开神马程序都出现一堆警告,fontconfig-ubuntu版本是2.10.1-0ubuntu3,求解释:
Fontconfig warning: line 65: Having multiple values in <test> isn't supported and may not works as expected
Fontconfig warning: line 74: Having multiple values in <test> isn't supported and may not works as expected
Fontconfig warning: line 83: Having multiple values in <test> isn't supported and may not works as expected
Fontconfig warning: line 103: Having multiple values in <test> isn't supported and may not works as expected
Fontconfig warning: line 121: Having multiple <family> in <alias> isn't supported and may not works as expected
Fontconfig warning: line 121: Having multiple <family> in <alias> isn't supported and may not works as expected
Fontconfig warning: line 121: Having multiple <family> in <alias> isn't supported and may not works as expected
Fontconfig warning: line 133: Having multiple <family> in <alias> isn't supported and may not works as expected
Fontconfig warning: line 133: Having multiple <family> in <alias> isn't supported and may not works as expected
Fontconfig warning: line 133: Having multiple <family> in <alias> isn't supported and may not works as expected
Fontconfig warning: line 133: Having multiple <family> in <alias> isn't supported and may not works as expected
Fontconfig warning: line 133: Having multiple <family> in <alias> isn't supported and may not works as expected
Fontconfig warning: line 133: Having multiple <family> in <alias> isn't supported and may not works as expected
Fontconfig warning: line 144: Having multiple <family> in <alias> isn't supported and may not works as expected
Fontconfig warning: line 144: Having multiple <family> in <alias> isn't supported and may not works as expected
Fontconfig warning: line 161: Having multiple <family> in <alias> isn't supported and may not works as expected
Fontconfig warning: line 161: Having multiple <family> in <alias> isn't supported and may not works as expected
Fontconfig warning: line 161: Having multiple <family> in <alias> isn't supported and may not works as expected
Fontconfig warning: line 161: Having multiple <family> in <alias> isn't supported and may not works as expected
Fontconfig warning: line 161: Having multiple <family> in <alias> isn't supported and may not works as expected
Fontconfig warning: line 161: Having multiple <family> in <alias> isn't supported and may not works as expected
Fontconfig warning: line 161: Having multiple <family> in <alias> isn't supported and may not works as expected
Fontconfig warning: line 161: Having multiple <family> in <alias> isn't supported and may not works as expected
Fontconfig warning: line 161: Having multiple <family> in <alias> isn't supported and may not works as expected
Fontconfig warning: line 161: Having multiple <family> in <alias> isn't supported and may not works as expected
Fontconfig warning: line 161: Having multiple <family> in <alias> isn't supported and may not works as expected
Fontconfig warning: line 197: Having multiple <family> in <alias> isn't supported and may not works as expected
Fontconfig warning: line 197: Having multiple <family> in <alias> isn't supported and may not works as expected
Fontconfig warning: line 197: Having multiple <family> in <alias> isn't supported and may not works as expected
Fontconfig warning: line 197: Having multiple <family> in <alias> isn't supported and may not works as expected
Fontconfig warning: line 197: Having multiple <family> in <alias> isn't supported and may not works as expected
Fontconfig warning: line 197: Having multiple <family> in <alias> isn't supported and may not works as expected
Fontconfig warning: line 197: Having multiple <family> in <alias> isn't supported and may not works as expected
Fontconfig warning: line 197: Having multiple <family> in <alias> isn't supported and may not works as expected
Fontconfig warning: line 197: Having multiple <family> in <alias> isn't supported and may not works as expected
Fontconfig warning: line 197: Having multiple <family> in <alias> isn't supported and may not works as expected
Fontconfig warning: line 197: Having multiple <family> in <alias> isn't supported and may not works as expected
Fontconfig warning: line 197: Having multiple <family> in <alias> isn't supported and may not works as expected
Fontconfig warning: line 197: Having multiple <family> in <alias> isn't supported and may not works as expected
Fontconfig warning: line 197: Having multiple <family> in <alias> isn't supported and may not works as expected
Fontconfig warning: line 197: Having multiple <family> in <alias> isn't supported and may not works as expected
Fontconfig warning: line 197: Having multiple <family> in <alias> isn't supported and may not works as expected
Fontconfig warning: line 197: Having multiple <family> in <alias> isn't supported and may not works as expected
Fontconfig warning: line 197: Having multiple <family> in <alias> isn't supported and may not works as expected
Fontconfig warning: line 197: Having multiple <family> in <alias> isn't supported and may not works as expected
Fontconfig warning: line 197: Having multiple <family> in <alias> isn't supported and may not works as expected
Fontconfig warning: line 197: Having multiple <family> in <alias> isn't supported and may not works as expected
Fontconfig warning: line 197: Having multiple <family> in <alias> isn't supported and may not works as expected
Fontconfig warning: line 197: Having multiple <family> in <alias> isn't supported and may not works as expected
Fontconfig warning: line 197: Having multiple <family> in <alias> isn't supported and may not works as expected
Fontconfig warning: line 197: Having multiple <family> in <alias> isn't supported and may not works as expected
Fontconfig warning: line 197: Having multiple <family> in <alias> isn't supported and may not works as expected
Fontconfig warning: line 197: Having multiple <family> in <alias> isn't supported and may not works as expected
Fontconfig warning: line 197: Having multiple <family> in <alias> isn't supported and may not works as expected
Fontconfig warning: line 197: Having multiple <family> in <alias> isn't supported and may not works as expected
Fontconfig warning: line 197: Having multiple <family> in <alias> isn't supported and may not works as expected
Fontconfig warning: line 213: Having multiple <family> in <alias> isn't supported and may not works as expected
Fontconfig warning: line 213: Having multiple <family> in <alias> isn't supported and may not works as expected
Fontconfig warning: line 213: Having multiple <family> in <alias> isn't supported and may not works as expected
Fontconfig warning: line 213: Having multiple <family> in <alias> isn't supported and may not works as expected
Fontconfig warning: line 213: Having multiple <family> in <alias> isn't supported and may not works as expected
Fontconfig warning: line 213: Having multiple <family> in <alias> isn't supported and may not works as expected
Fontconfig warning: line 213: Having multiple <family> in <alias> isn't supported and may not works as expected
Fontconfig warning: line 213: Having multiple <family> in <alias> isn't supported and may not works as expected
Fontconfig warning: line 213: Having multiple <family> in <alias> isn't supported and may not works as expected
Fontconfig warning: line 213: Having multiple <family> in <alias> isn't supported and may not works as expected
Fontconfig warning: line 242: Having multiple <family> in <alias> isn't supported and may not works as expected
Fontconfig warning: line 242: Having multiple <family> in <alias> isn't supported and may not works as expected
Fontconfig warning: line 242: Having multiple <family> in <alias> isn't supported and may not works as expected
Fontconfig warning: line 242: Having multiple <family> in <alias> isn't supported and may not works as expected
Fontconfig warning: line 242: Having multiple <family> in <alias> isn't supported and may not works as expected
Fontconfig warning: line 242: Having multiple <family> in <alias> isn't supported and may not works as expected
Fontconfig warning: line 242: Having multiple <family> in <alias> isn't supported and may not works as expected
Fontconfig warning: line 242: Having multiple <family> in <alias> isn't supported and may not works as expected
Fontconfig warning: line 242: Having multiple <family> in <alias> isn't supported and may not works as expected
Fontconfig warning: line 242: Having multiple <family> in <alias> isn't supported and may not works as expected
Fontconfig warning: line 242: Having multiple <family> in <alias> isn't supported and may not works as expected
Fontconfig warning: line 242: Having multiple <family> in <alias> isn't supported and may not works as expected
Fontconfig warning: line 242: Having multiple <family> in <alias> isn't supported and may not works as expected
Fontconfig warning: line 242: Having multiple <family> in <alias> isn't supported and may not works as expected
Fontconfig warning: line 242: Having multiple <family> in <alias> isn't supported and may not works as expected
Fontconfig warning: line 242: Having multiple <family> in <alias> isn't supported and may not works as expected
Fontconfig warning: line 242: Having multiple <family> in <alias> isn't supported and may not works as expected
Fontconfig warning: line 242: Having multiple <family> in <alias> isn't supported and may not works as expected
Fontconfig warning: line 242: Having multiple <family> in <alias> isn't supported and may not works as expected
Fontconfig warning: line 242: Having multiple <family> in <alias> isn't supported and may not works as expected
Fontconfig warning: line 266: Having multiple <family> in <alias> isn't supported and may not works as expected
Fontconfig warning: line 266: Having multiple <family> in <alias> isn't supported and may not works as expected
Fontconfig warning: line 266: Having multiple <family> in <alias> isn't supported and may not works as expected
Fontconfig warning: line 266: Having multiple <family> in <alias> isn't supported and may not works as expected
Fontconfig warning: line 266: Having multiple <family> in <alias> isn't supported and may not works as expected
Fontconfig warning: line 266: Having multiple <family> in <alias> isn't supported and may not works as expected
Fontconfig warning: line 266: Having multiple <family> in <alias> isn't supported and may not works as expected
Fontconfig warning: line 266: Having multiple <family> in <alias> isn't supported and may not works as expected
Fontconfig warning: line 266: Having multiple <family> in <alias> isn't supported and may not works as expected
Fontconfig warning: line 266: Having multiple <family> in <alias> isn't supported and may not works as expected
Fontconfig warning: line 266: Having multiple <family> in <alias> isn't supported and may not works as expected
Fontconfig warning: line 266: Having multiple <family> in <alias> isn't supported and may not works as expected
Fontconfig warning: line 266: Having multiple <family> in <alias> isn't supported and may not works as expected
Fontconfig warning: line 266: Having multiple <family> in <alias> isn't supported and may not works as expected
Fontconfig warning: line 266: Having multiple <family> in <alias> isn't supported and may not works as expected
Fontconfig warning: line 266: Having multiple <family> in <alias> isn't supported and may not works as expected
Fontconfig warning: line 266: Having multiple <family> in <alias> isn't supported and may not works as expected
Fontconfig warning: line 266: Having multiple <family> in <alias> isn't supported and may not works as expected
Fontconfig warning: line 293: Having multiple <family> in <alias> isn't supported and may not works as expected
Fontconfig warning: line 293: Having multiple <family> in <alias> isn't supported and may not works as expected
Fontconfig warning: line 293: Having multiple <family> in <alias> isn't supported and may not works as expected
Fontconfig warning: line 293: Having multiple <family> in <alias> isn't supported and may not works as expected
Fontconfig warning: line 293: Having multiple <family> in <alias> isn't supported and may not works as expected
Fontconfig warning: line 293: Having multiple <family> in <alias> isn't supported and may not works as expected
Fontconfig warning: line 293: Having multiple <family> in <alias> isn't supported and may not works as expected
Fontconfig warning: line 293: Having multiple <family> in <alias> isn't supported and may not works as expected
Fontconfig warning: line 293: Having multiple <family> in <alias> isn't supported and may not works as expected
Fontconfig warning: line 293: Having multiple <family> in <alias> isn't supported and may not works as expected
Fontconfig warning: line 293: Having multiple <family> in <alias> isn't supported and may not works as expected
Fontconfig warning: line 293: Having multiple <family> in <alias> isn't supported and may not works as expected
Fontconfig warning: line 293: Having multiple <family> in <alias> isn't supported and may not works as expected
Fontconfig warning: line 293: Having multiple <family> in <alias> isn't supported and may not works as expected
Fontconfig warning: line 293: Having multiple <family> in <alias> isn't supported and may not works as expected
Fontconfig warning: line 293: Having multiple <family> in <alias> isn't supported and may not works as expected
Fontconfig warning: line 293: Having multiple <family> in <alias> isn't supported and may not works as expected
Fontconfig warning: line 293: Having multiple <family> in <alias> isn't supported and may not works as expected
Fontconfig warning: line 293: Having multiple <family> in <alias> isn't supported and may not works as expected
Fontconfig warning: line 293: Having multiple <family> in <alias> isn't supported and may not works as expected
Fontconfig warning: line 293: Having multiple <family> in <alias> isn't supported and may not works as expected
Fontconfig warning: line 327: Having multiple <family> in <alias> isn't supported and may not works as expected
Fontconfig warning: line 334: Having multiple <family> in <alias> isn't supported and may not works as expected
Fontconfig warning: line 358: Having multiple <family> in <alias> isn't supported and may not works as expected
Fontconfig warning: line 378: Having multiple <family> in <alias> isn't supported and may not works as expected
Fontconfig warning: line 378: Having multiple <family> in <alias> isn't supported and may not works as expected
Fontconfig warning: line 434: Having multiple <family> in <alias> isn't supported and may not works as expected
Fontconfig warning: line 434: Having multiple <family> in <alias> isn't supported and may not works as expected
Fontconfig warning: line 442: Having multiple <family> in <alias> isn't supported and may not works as expected
Fontconfig warning: line 442: Having multiple <family> in <alias> isn't supported and may not works as expected
Fontconfig warning: line 450: Having multiple <family> in <alias> isn't supported and may not works as expected
Fontconfig warning: line 450: Having multiple <family> in <alias> isn't supported and may not works as expected
Fontconfig warning: line 565: Having multiple values in <test> isn't supported and may not works as expected
Fontconfig warning: line 658: Having multiple values in <test> isn't supported and may not works as expected
Fontconfig warning: line 674: Having multiple values in <test> isn't supported and may not works as expected
Fontconfig warning: line 684: Having multiple values in <test> isn't supported and may not works as expected
本人的 Arch Linux 软件仓库:http://git.io/-1
本人的广告过滤及代·理规则订阅页面:http://git.io/f0x
离线
离线
我能说新版的配置文件格式有变化么?
小白路过,大家给点面子!
离线
我能说新版的配置文件格式有变化么?
我也知道变化了,但不知道怎么改,所以才求各位给个workaround……还是等建客出马吧,他那篇配置文章我没看懂……
本人的 Arch Linux 软件仓库:http://git.io/-1
本人的广告过滤及代·理规则订阅页面:http://git.io/f0x
离线
<alias> 和<test>只支持单个参数。
小白路过,大家给点面子!
离线
离线
汗!
我很喜欢这种多字体效果,现在不支持多个参数是不是意味着大部分字体都没有用了?
最近编辑记录 danielhugo (2012-09-24 16:25:54)
本人的 Arch Linux 软件仓库:http://git.io/-1
本人的广告过滤及代·理规则订阅页面:http://git.io/f0x
离线
现在 Arch 到底什么情况我都不清楚,改日再装它一回才行。
我不懂英语,现在中文 wiki 改得面目全非……
离线
要分开写……DT....
离线
要分开写……DT....
不懂……- -b DT是神马意思?Ditto?蛋疼?不如您改一部分做例子吧……
本人的 Arch Linux 软件仓库:http://git.io/-1
本人的广告过滤及代·理规则订阅页面:http://git.io/f0x
离线
百合仙子 说:要分开写……DT....
不懂……- -b DT是神马意思?Ditto?蛋疼?不如您改一部分做例子吧……
文件呢?
离线
danielhugo 说:百合仙子 说:要分开写……DT....
不懂……- -b DT是神马意思?Ditto?蛋疼?不如您改一部分做例子吧……
文件呢?
声明:版权归建客所有,为了防止不必要的错误,我未改一字,下面上代码:
<?xml version="1.0"?>
<!DOCTYPE fontconfig SYSTEM "fonts.dtd">
<fontconfig>
<dir>/usr/share/fonts</dir>
<dir>/usr/X11R6/lib/X11/fonts</dir>
<dir>/usr/local/share/fonts</dir>
<dir>~/.fonts</dir>
<cachedir>/var/cache/fontconfig</cachedir>
<cachedir>~/.fontconfig</cachedir>
<selectfont>
<rejectfont>
<pattern>
<patelt name="scalable"><bool>false</bool></patelt>
</pattern>
</rejectfont>
<!--
<acceptfont>
<pattern>
<patelt name="family"><string>Terminus</string></patelt>
</pattern>
<pattern>
<patelt name="family"><string>WenQuanYi Bitmap Song</string></patelt>
</pattern>
</acceptfont>
-->
</selectfont>
<config>
<blank>
<int>0x0020</int> <int>0x00A0</int> <int>0x00AD</int> <int>0x034F</int>
<int>0x0600</int> <int>0x0601</int> <int>0x0602</int> <int>0x0603</int>
<int>0x06DD</int> <int>0x070F</int> <int>0x115F</int> <int>0x1160</int>
<int>0x1680</int> <int>0x17B4</int> <int>0x17B5</int> <int>0x180E</int>
<int>0x2000</int> <int>0x2001</int> <int>0x2002</int> <int>0x2003</int>
<int>0x2004</int> <int>0x2005</int> <int>0x2006</int> <int>0x2007</int>
<int>0x2008</int> <int>0x2009</int> <int>0x200A</int> <int>0x200B</int>
<int>0x200C</int> <int>0x200D</int> <int>0x200E</int> <int>0x200F</int>
<int>0x2028</int> <int>0x2029</int> <int>0x202A</int> <int>0x202B</int>
<int>0x202C</int> <int>0x202D</int> <int>0x202E</int> <int>0x202F</int>
<int>0x205F</int> <int>0x2060</int> <int>0x2061</int> <int>0x2062</int>
<int>0x2063</int> <int>0x206A</int> <int>0x206B</int> <int>0x206C</int>
<int>0x206D</int> <int>0x206E</int> <int>0x206F</int> <int>0x2800</int>
<int>0x3000</int> <int>0x3164</int> <int>0xFEFF</int> <int>0xFFA0</int>
<int>0xFFF9</int> <int>0xFFFA</int> <int>0xFFFB</int>
</blank>
<rescan><int>30</int></rescan>
</config>
<!-- ############################################################# -->
<!-- 别名替换:标准命名第一 -->
<!-- 中文数类 -->
<match>
<test name="family">
<string>仿宋</string>
</test>
<edit name="family">
<string>zh-FangSong</string>
</edit>
</match>
<match>
<test name="family">
<string>楷体</string>
<string>楷體</string>
</test>
<edit name="family">
<string>zh-KaiTi</string>
</edit>
</match>
<match>
<test name="family">
<string>宋体</string>
<string>宋體</string>
</test>
<edit name="family">
<string>zh-SongTi</string>
</edit>
</match>
<match>
<test name="family">
<string>黑体</string>
<string>黑體</string>
</test>
<edit name="family">
<string>zh-HeiTi</string>
</edit>
</match>
<!-- ============================================================= -->
<!-- 标准三类 -->
<match>
<test name="family">
<string>mono</string>
</test>
<edit name="family">
<string>monospace</string>
</edit>
</match>
<match>
<test name="family">
<string>sans</string>
<string>sans serif</string>
</test>
<edit name="family">
<string>sans-serif</string>
</edit>
</match>
<!-- ############################################################# -->
<!-- 字体归类:有根可循第二 -->
<!-- 附加两类 -->
<alias binding="strong">
<family>Impact</family>
<family>Copperplate Gothic Std</family>
<family>Cooper Std</family>
<family>Bauhaus Std</family>
<accept>
<family>fantasy</family>
</accept>
</alias>
<alias binding="strong">
<family>Libris ADF Std</family>
<family>Comic Sans MS</family>
<family>Chalkboard</family>
<family>URW Chancery L</family>
<family>Zapf Chancery</family>
<family>ITC Zapf Chancery Std</family>
<family>Zapfino</family>
<accept>
<family>cursive</family>
</accept>
</alias>
<!-- ============================================================= -->
<!-- 中文数类 -->
<alias binding="strong">
<family>FangSong</family>
<family>FangSong_GB2312</family>
<family>仿宋_GB2312</family>
<accept>
<family>zh-FangSong</family>
</accept>
</alias>
<alias binding="strong">
<family>AR PL UKai CN</family>
<family>AR PL UKai HK</family>
<family>AR PL UKai TW</family>
<family>AR PL UKai TW MBE</family>
<family>AR PL ZenKai Uni</family>
<family>AR PL ZenKai Uni MBE</family>
<family>AR PL KaitiM GB</family>
<family>文鼎PL简中楷</family>
<family>AR PL KaitiM Big5</family>
<family>文鼎PL中楷</family>
<family>KaiTi_GB2312</family>
<family>楷体_GB2312</family>
<accept>
<family>zh-KaiTi</family>
</accept>
</alias>
<alias binding="strong">
<family>AR PL UMing CN</family>
<family>AR PL UMing HK</family>
<family>AR PL UMing TW</family>
<family>AR PL UMing TW MBE</family>
<family>AR PL ShanHeiSun Uni</family>
<family>AR PL ShanHeiSun Uni MBE</family>
<family>AR PL Mingti2L Big5</family>
<family>文鼎PL細上海宋</family>
<family>AR PL SungtiL GB</family>
<family>文鼎PL简报宋</family>
<family>AR PLBaosong2GBK Light</family>
<family>文鼎PL报宋二GBK</family>
<family>AR PLMingU20 Light</family>
<family>文鼎PL明體U20-L</family>
<family>HAN NOM A</family>
<family>HAN NOM B</family>
<family>HanaMinA</family>
<family>花園明朝A</family>
<family>HanaMinB</family>
<family>花園明朝B</family>
<family>SimSun</family>
<family>SimSun-PUA</family>
<family>宋体-PUA</family>
<family>SimSun-ExtB</family>
<family>NSimSun</family>
<family>新宋体</family>
<family>PMingLiU</family>
<family>新細明體</family>
<family>MingLiU</family>
<family>細明體</family>
<family>MingLiU-ExtB</family>
<accept>
<family>zh-SongTi</family>
</accept>
</alias>
<alias binding="strong">
<family>WenQuanYi Zen Hei</family>
<family>文泉驿正黑</family>
<family>文泉驛正黑</family>
<family>WenQuanYi Micro Hei</family>
<family>文泉驿微米黑</family>
<family>文泉驛微米黑</family>
<family>Microsoft YaHei</family>
<family>微软雅黑</family>
<family>Microsoft JhengHei</family>
<family>微軟正黑體</family>
<family>SimHei</family>
<accept>
<family>zh-HeiTi</family>
</accept>
</alias>
<!-- ============================================================= -->
<!-- 标准三类 -->
<alias binding="strong">
<family>Bitstream Charter</family>
<family>Bitstream Vera Serif</family>
<family>DejaVu Serif</family>
<family>Luxi Serif</family>
<family>Lucida Serif</family>
<family>Georgia</family>
<family>Liberation Serif</family>
<family>Times New Roman</family>
<family>Thorndale</family>
<family>Thorndale AMT</family>
<family>Nimbus Roman No9 L</family>
<family>Times</family>
<family>URW Bookman L</family>
<family>Bookman</family>
<family>Century Schoolbook L</family>
<family>New Century Schoolbook</family>
<family>URW Palladio L</family>
<family>Palatino</family>
<family>Gentium Basic</family>
<family>Gentium Book Basic</family>
<family>FreeSerif</family>
<accept>
<family>serif</family>
</accept>
</alias>
<alias binding="strong">
<family>Bitstream Vera Sans</family>
<family>DejaVu Sans</family>
<family>Luxi Sans</family>
<family>Lucida Sans</family>
<family>Lucida Sans Unicode</family>
<family>Lucida Grande</family>
<family>Tahoma</family>
<family>Trebuchet MS</family>
<family>Verdana</family>
<family>Liberation Sans</family>
<family>Arial</family>
<family>Arial Black</family>
<family>Albany</family>
<family>Albany AMT</family>
<family>Nimbus Sans L</family>
<family>Helvetica</family>
<family>URW Gothic L</family>
<family>Avant Garde</family>
<family>FreeSans</family>
<accept>
<family>sans-serif</family>
</accept>
</alias>
<alias binding="strong">
<family>Bitstream Vera Sans Mono</family>
<family>DejaVu Sans Mono</family>
<family>Luxi Mono</family>
<family>Lucida Console</family>
<family>Andale Mono</family>
<family>Consolas</family>
<family>Monaco</family>
<family>Inconsolata</family>
<family>Liberation Mono</family>
<family>Courier New</family>
<family>Cumberland</family>
<family>Cumberland AMT</family>
<family>Nimbus Mono L</family>
<family>Courier</family>
<family>Courier 10 Pitch</family>
<family>FreeMono</family>
<family>WenQuanYi Zen Hei Mono</family>
<family>文泉驿等宽正黑</family>
<family>文泉驛等寬正黑</family>
<family>WenQuanYi Micro Hei Mono</family>
<family>文泉驿等宽微米黑</family>
<family>文泉驛等寬微米黑</family>
<accept>
<family>monospace</family>
</accept>
</alias>
<!-- ============================================================= -->
<!-- 默认字体 -->
<match>
<test name="family" qual="all" compare="not_eq">
<string>sans-serif</string>
</test>
<test name="family" qual="all" compare="not_eq">
<string>serif</string>
</test>
<test name="family" qual="all" compare="not_eq">
<string>monospace</string>
</test>
<edit name="family" mode="append_last" binding="strong">
<string>WenQuanYi Zen Hei Mono</string>
<string>HAN NOM A</string>
<string>HAN NOM B</string>
<!--
<string>sans-serif</string>
-->
</edit>
</match>
<!-- ############################################################# -->
<!-- 特定代换:务求最佳第三 -->
<!-- 花園明朝 -->
<alias binding="strong">
<family>HanaMinB</family>
<family>花園明朝B</family>
<prefer>
<family>HanaMinA</family>
</prefer>
</alias>
<alias binding="strong">
<family>HanaMinA</family>
<family>花園明朝A</family>
<accept>
<family>HanaMinB</family>
</accept>
</alias>
<!-- HAN NOM -->
<alias binding="strong">
<family>HAN NOM B</family>
<prefer>
<family>HAN NOM A</family>
</prefer>
</alias>
<alias binding="strong">
<family>HAN NOM A</family>
<accept>
<family>HAN NOM B</family>
</accept>
</alias>
<!-- ============================================================= -->
<!-- 其它 -->
<alias binding="strong">
<family>Comic Sans MS</family>
<family>Chalkboard</family>
<accept>
<family>Libris ADF Std</family>
</accept>
</alias>
<alias binding="strong">
<family>Symbol</family>
<accept>
<family>Standard Symbols L</family>
</accept>
</alias>
<alias binding="strong">
<family>Zapf Dingbats</family>
<accept>
<family>Dingbats</family>
</accept>
</alias>
<alias binding="strong">
<family>Zapf Chancery</family>
<family>ITC Zapf Chancery Std</family>
<family>Zapfino</family>
<accept>
<family>URW Chancery L</family>
</accept>
</alias>
<alias binding="strong">
<family>Avant Garde</family>
<accept>
<family>URW Gothic L</family>
</accept>
</alias>
<alias binding="strong">
<family>Palatino</family>
<accept>
<family>URW Palladio L</family>
</accept>
</alias>
<alias binding="strong">
<family>Bookman</family>
<accept>
<family>URW Bookman L</family>
</accept>
</alias>
<alias binding="strong">
<family>New Century Schoolbook</family>
<accept>
<family>Century Schoolbook L</family>
</accept>
</alias>
<!-- ============================================================= -->
<!-- Nimbus -->
<alias binding="strong">
<family>Courier</family>
<accept>
<family>Nimbus Mono L</family>
</accept>
</alias>
<alias binding="strong">
<family>Helvetica</family>
<accept>
<family>Nimbus Sans L</family>
</accept>
</alias>
<alias binding="strong">
<family>Times</family>
<accept>
<family>Nimbus Roman No9 L</family>
</accept>
</alias>
<!-- ============================================================= -->
<!-- Liberation -->
<alias binding="strong">
<family>Courier New</family>
<family>Cumberland</family>
<family>Cumberland AMT</family>
<accept>
<family>Liberation Mono</family>
</accept>
</alias>
<alias binding="strong">
<family>Arial</family>
<family>Albany</family>
<family>Albany AMT</family>
<accept>
<family>Liberation Sans</family>
</accept>
</alias>
<alias binding="strong">
<family>Times New Roman</family>
<family>Thorndale</family>
<family>Thorndale AMT</family>
<accept>
<family>Liberation Serif</family>
</accept>
</alias>
<!-- ============================================================= -->
<!-- Luxi -->
<!--
<alias binding="strong">
<family>Lucida Serif</family>
<accept>
<family>Luxi Serif</family>
</accept>
</alias>
<alias binding="strong">
<family>Lucida Sans</family>
<family>Lucida Sans Unicode</family>
<family>Lucida Grande</family>
<accept>
<family>Luxi Sans</family>
</accept>
</alias>
<alias binding="strong">
<family>Lucida Console</family>
<accept>
<family>Luxi Mono</family>
</accept>
</alias>
-->
<!-- ############################################################# -->
<!-- 以类定字:通用匹配第四 -->
<!-- 附加两类 -->
<alias binding="strong">
<family>fantasy</family>
<prefer>
<family>Libris ADF Std</family>
<family>AR PL UKai CN</family>
</prefer>
</alias>
<alias binding="strong">
<family>cursive</family>
<prefer>
<family>Libris ADF Std</family>
<family>AR PL UKai CN</family>
</prefer>
</alias>
<!-- ============================================================= -->
<!-- 中文数类 -->
<alias binding="strong">
<family>zh-FangSong</family>
<prefer>
<family>AR PL UKai CN</family> <!-- 假楷济仿 -->
</prefer>
</alias>
<alias binding="strong">
<family>zh-KaiTi</family>
<prefer>
<family>Libris ADF Std</family>
<family>AR PL UKai CN</family>
</prefer>
</alias>
<alias binding="strong">
<family>zh-SongTi</family>
<prefer>
<family>Liberation Serif</family>
<family>AR PLBaosong2GBK Light</family>
<family>HAN NOM A</family>
<family>HAN NOM B</family>
</prefer>
</alias>
<alias binding="strong">
<family>zh-HeiTi</family>
<prefer>
<family>Liberation Sans</family>
<family>WenQuanYi Zen Hei</family>
</prefer>
</alias>
<!-- ============================================================= -->
<!-- 标准三类 -->
<alias binding="strong">
<family>serif</family>
<prefer>
<family>Liberation Serif</family>
<family>AR PLBaosong2GBK Light</family>
<family>HAN NOM A</family>
<family>HAN NOM B</family>
</prefer>
</alias>
<alias binding="strong">
<family>sans-serif</family>
<prefer>
<family>Liberation Sans</family>
<family>WenQuanYi Zen Hei</family>
<family>HAN NOM A</family>
<family>HAN NOM B</family>
</prefer>
</alias>
<alias binding="strong">
<family>monospace</family>
<prefer>
<family>WenQuanYi Zen Hei Mono</family>
<family>HAN NOM A</family>
<family>HAN NOM B</family>
</prefer>
</alias>
<!-- ############################################################# -->
<!-- 强制替换:偷梁换柱第五 -->
<!-- 宋小黑代 -->
<match>
<test name="family">
<string>文鼎PL报宋二GBK</string>
<string>AR PLBaosong2GBK Light</string>
</test>
<test name="pixelsize" compare="less">
<double>16</double>
</test>
<edit name="family" binding="strong">
<string>WenQuanYi Zen Hei</string>
</edit>
</match>
<!-- ############################################################# -->
<!-- 伪造字体:无中生有第六 -->
<!-- 伪斜体 -->
<match target="font">
<test name="slant" target="pattern" compare="not_eq">
<const>roman</const>
</test>
<test name="slant">
<const>roman</const>
</test>
<edit name="matrix">
<times>
<name>matrix</name>
<matrix>
<double>1</double><double>0.2</double>
<double>0</double><double>1</double>
</matrix>
</times>
</edit>
<edit name="slant"><const>oblique</const></edit>
</match>
<!-- 伪粗体 -->
<match target="font">
<test name="weight" target="pattern" compare="more">
<const>medium</const>
</test>
<test name="weight" compare="less_eq">
<const>medium</const>
</test>
<edit name="embolden"><bool>true</bool></edit>
<edit name="weight"><const>bold</const></edit>
</match>
<!-- ############################################################# -->
<!-- 显示控制:花容月貌第七 -->
<!-- 全局 -->
<match target="font">
<edit name="antialias"><bool>true</bool></edit>
<edit name="autohint"><bool>false</bool></edit>
<edit name="hinting"><bool>true</bool></edit>
<edit name="hintstyle"><const>hintslight</const></edit>
</match>
<match target="font">
<test name="pixelsize" compare="less">
<double>18</double>
</test>
<edit name="rgba"><const>rgb</const></edit>
<edit name="lcdfilter"><const>lcdlight</const></edit>
</match>
<!--
<match target="font">
<test name="lang" compare="contains">
<string>zh</string>
<string>ja</string>
<string>ko</string>
</test>
<test name="spacing">
<const>dual</const>
</test>
<edit name="spacing"><const>proportional</const></edit>
<edit name="globaladvance"><bool>false</bool></edit>
</match>
-->
<!-- ============================================================= -->
<!-- 中文 -->
<match target="font">
<test name="family" compare="contains">
<string>AR PL UKai</string>
</test>
<edit name="spacing"><const>dual</const></edit>
<edit name="minspace"><bool>false</bool></edit>
</match>
<match target="font">
<test name="family">
<string>WenQuanYi Zen Hei</string>
<string>文泉驿正黑</string>
<string>文泉驛正黑</string>
<string>WenQuanYi Zen Hei Mono</string>
<string>文泉驿等宽正黑</string>
<string>文泉驛等寬正黑</string>
</test>
<edit name="rh_prefer_bitmaps"><bool>false</bool></edit>
<edit name="embeddedbitmap"><bool>false</bool></edit>
</match>
<!-- ============================================================= -->
<!-- 西文 -->
<match target="font">
<test name="pixelsize" compare="less">
<double>7.5</double>
</test>
<test name="family" compare="contains">
<string>Liberation</string>
<string>DejaVu</string>
<string>Nimbus</string>
<string>Bitstream Vera</string>
</test>
<edit name="autohint"><bool>true</bool></edit>
<edit name="hinting"><bool>false</bool></edit>
</match>
<match target="font">
<test name="family" compare="contains">
<string>Liberation</string>
<string>DejaVu</string>
<string>Nimbus Mono L</string>
<string>Bitstream Vera</string>
</test>
<edit name="hintstyle"><const>hintfull</const></edit>
</match>
</fontconfig>
本人的 Arch Linux 软件仓库:http://git.io/-1
本人的广告过滤及代·理规则订阅页面:http://git.io/f0x
离线
这样的
<!-- 宋小黑代 -->
<match>
<test name="family">
<string>文鼎PL报宋二GBK</string>
<string>AR PLBaosong2GBK Light</string>
</test>
<test name="pixelsize" compare="less">
<double>16</double>
</test>
<edit name="family" binding="strong">
<string>WenQuanYi Zen Hei</string>
</edit>
</match>
改成类似这样的
<!-- 宋小黑代 -->
<match>
<test name="family">
<string>文鼎PL报宋二GBK</string>
</test>
<test name="family">
<string>AR PLBaosong2GBK Light</string>
</test>
<test name="pixelsize" compare="less">
<double>16</double>
</test>
<edit name="family" binding="strong">
<string>WenQuanYi Zen Hei</string>
</edit>
</match>
离线
这样的
<!-- 宋小黑代 --> <match> <test name="family"> <string>文鼎PL报宋二GBK</string> <string>AR PLBaosong2GBK Light</string> </test> <test name="pixelsize" compare="less"> <double>16</double> </test> <edit name="family" binding="strong"> <string>WenQuanYi Zen Hei</string> </edit> </match>
改成类似这样的
<!-- 宋小黑代 --> <match> <test name="family"> <string>文鼎PL报宋二GBK</string> </test> <test name="family"> <string>AR PLBaosong2GBK Light</string> </test> <test name="pixelsize" compare="less"> <double>16</double> </test> <edit name="family" binding="strong"> <string>WenQuanYi Zen Hei</string> </edit> </match>
なるほど!看来要用脚本改了……
比如我要把里面有繁体字的行去掉,sed怎么写?
sed -i '[\uxxxx-\uxxxx]+'d fonts.conf?unicode多少?
最近编辑记录 danielhugo (2012-09-25 17:48:47)
本人的 Arch Linux 软件仓库:http://git.io/-1
本人的广告过滤及代·理规则订阅页面:http://git.io/f0x
离线
なるほど!看来要用脚本改了……
比如我要把里面有繁体字的行去掉,sed怎么写?
用 Python 吧,凡是不在 gb2312 中的字都认为是繁体字如何?
离线