您需要 登录 才可以下载或查看,没有帐号?注册
使用道具 举报
Post by sunmoon1997 没有字体替换部分,以后再写 <?xml version="1.0"?> <!DOCTYPE fontconfig SYSTEM "fonts.dtd"> <!-- /etc/fonts/local.conf file for local customizations --> <fontconfig> <dir>/usr/share/fonts</dir> <dir>/usr/share/fonts/ttf/zh_CN</dir> <!-- Enable sub-pixel rendering <match target="font"> <test qual="all" name="rgba"> <const>unknown</const> </test> <edit name="rgba" mode="assign"> <const>rgb</const> </edit> </match> --> <!-- Add by Firefly(firefly@firefly.idv.tw) --> <match target="font"> <edit name="embeddedbitmap" mod="assign"> <bool>true</bool> </edit> </match> <!-- Add by Firefly(firefly@firefly.idv.tw) Most of Asian fonts can't explain by freetype2, so,if these fonts have dual width(half/full) and monospacing, you need to disable globaladvance. --> <match target="font"> <test compare="more_eq" name="spacing"> <const>dual</const> </test> <edit mode="assign" name="globaladvance"> <bool>false</bool> </edit> </match> <!-- Add by firefly@firefly.idv.tw Artificial bold for fonts without a bold version. --> <match target="font"> <!-- check to see if the pattern requested> "medium" --> <test compare="more" target="pattern" name="weight"> <const>medium</const> </test> <!-- pretend the font is bold now --> <edit mode="assign" name="weight"> <const>bold</const> </edit> </match> <!-- default settings for all fonts. --> <match target="font"> <edit mode="assign" name="antialias"> <bool>true</bool> </edit> <edit mode="assign" name="hintstyle"> <const>hintslight</const> </edit> <edit mode="assign" name="hint"> <bool>true</bool> </edit> <edit mode="assign" name="autohint"> <bool>false</bool> </edit> </match> <match target="font"> <test compare="contains" target="pattern" name="lang"> <string>zh-cn</string> <string>zh-tw</string> <string>ja</string> <string>ko</string> </test> <test compare="eq" name="spacing"> <const>mono</const> </test> <edit mode="assign" name="globaladvance"> <bool>false</bool> </edit> </match> <!-- Add by firefly@firefly.idv.tw --> <match target="font"> <test compare="contains" name="lang"> <string>zh-cn</string> <string>zh-tw</string> <string>ja</string> <string>ko</string> </test> <edit mode="assign" name="hint"> <bool>true</bool> </edit> <edit mode="assign" name="autohint"> <bool>false</bool> </edit> <edit mode="assign" name="hintstyle"> <const>hintslight</const> </edit> <edit mode="assign" name="usegamma"> <if> <less> <name>pixelsize</name> <double>20</double> </less> </if> <bool>true</bool> </edit> </match> <match target="font"> <test name="family" qual="any"> <string>宋体</string> <string>新宋体</string> <string>SimSun</string> <string>NSimSun</string> </test> <test compare="more_eq" name="pixelsize"> <int>8</int> </test> <test compare="less_eq" name="pixelsize"> <int>12</int> </test> <edit mode="assign" name="pixelsize"> <int>12</int> </edit> </match> <match target="font"> <test name="family" qual="any"> <string>宋体</string> <string>新宋体</string> <string>SimSun</string> <string>NSimSun</string> </test> <test compare="more_eq" name="pixelsize"> <int>12</int> </test> <test compare="less_eq" name="pixelsize"> <int>18</int> </test> <edit mode="assign" name="antialias"> <bool>false</bool> </edit> </match> <match target="font"> <test name="family" qual="any"> <string>Tahoma</string> </test> <test compare="more_eq" name="pixelsize"> <int>12</int> </test> <test compare="less_eq" name="pixelsize"> <int>18</int> </test> <edit mode="assign" name="antialias"> <bool>false</bool> </edit> </match> <match target="font"> <test name="family" qual="any"> <string>Bitstream Vera Sans Mono</string> <string>Bitstream Vera Sans</string> <string>Bitstream Vera Serif</string> </test> <test compare="more_eq" name="size"> <int>4</int> </test> <test compare="less_eq" name="size"> <int>16</int> </test> <edit mode="assign" name="antialias"> <bool>false</bool> </edit> </match> <match target="font"> <test name="family" qual="any"> <string>东文仿宋</string> <string>东文宋体</string> <string>东文楷体</string> <string>DongWen FangSong</string> <string>DongWen KaiTi</string> <string>DongWen SongTi</string> </test> <test compare="more_eq" name="size"> <int>4</int> </test> <test compare="less_eq" name="size"> <int>16</int> </test> <edit mode="assign" name="antialias"> <bool>false</bool> </edit> </match> <match target="font"> <test name="family" qual="any"> <string>东文仿宋</string> <string>东文宋体</string> <string>东文楷体</string> <string>DongWen FangSong</string> <string>DongWen KaiTi</string> <string>DongWen SongTi</string> <string>华文仿宋</string> <string>华文宋体</string> <string>华文楷体</string> <string>STSong</string> <string>STKaiTi</string> <string>STFangSong</string> </test> <test compare="more_eq" name="size"> <int>4</int> </test> <test compare="less_eq" name="size"> <int>16</int> </test> <edit mode="assign" name="antialias"> <bool>false</bool> </edit> </match> <match target="font"> <test name="family" qual="any"> <string>东文仿宋</string> <string>东文宋体</string> <string>DongWen FangSong</string> <string>DongWen SongTi</string> <string>华文仿宋</string> <string>华文宋体</string> <string>STSong</string> <string>STFangSong</string> </test> <test compare="more_eq" name="size"> <int>18</int> </test> <test compare="less_eq" name="size"> <int>28</int> </test> <edit mode="assign" name="usegamma"> <bool>true</bool> </edit> </match> <match target="font"> <test name="family" qual="any"> <string>华文中宋</string> <string>STZhongSong</string> </test> <test compare="more_eq" name="size"> <int>4</int> </test> <test compare="less_eq" name="size"> <int>13</int> </test> <edit mode="assign" name="antialias"> <bool>false</bool> </edit> </match> <match target="font"> <test name="family" qual="any"> <string>幼圆</string> <string>YouYuan</string> </test> <test compare="more_eq" name="size"> <int>4</int> </test> <test compare="less_eq" name="size"> <int>20</int> </test> <edit mode="assign" name="usegamma"> <bool>true</bool> </edit> </match> <match target="font"> <test name="family" qual="any"> <string>方正宋一_GB18030</string> <string>FZSongYi-Z13_GB18030</string> </test> <test compare="more_eq" name="size"> <int>4</int> </test> <test compare="less_eq" name="size"> <int>20</int> </test> <edit mode="assign" name="usegamma"> <bool>true</bool> </edit> </match> <match target="font"> <test name="family" qual="any"> <string>方正宋体</string> <string>方正楷体</string> <string>方正楷体_GB18030</string> <string>FZSongTi</string> <string>FZKaiTi</string> <string>FZKai-Z03_GB18030</string> </test> <test compare="more_eq" name="size"> <int>4</int> </test> <test compare="less_eq" name="size"> <int>16</int> </test> <edit mode="assign" name="antialias"> <bool>false</bool> </edit> </match> <match target="font"> <test name="family" qual="any"> <string>方正仿宋</string> <string>方正仿宋_GB18030</string> <string>FZFangSong-Z02_GB18030</string> <string>FZFangSongTi</string> </test> <test compare="more_eq" name="size"> <int>4</int> </test> <test compare="less_eq" name="size"> <int>32</int> </test> <edit mode="assign" name="usegamma"> <bool>true</bool> </edit> </match> <match target="font"> <test name="family" qual="any"> <string>Ming</string> <string>Ming for iso10646</string> </test> <test compare="more_eq" name="size"> <int>4</int> </test> <test compare="less_eq" name="size"> <int>32</int> </test> <edit mode="assign" name="usegamma"> <bool>true</bool> </edit> </match> <match target="font"> <test name="family" qual="any"> <string>隶书</string> <string>LiSu</string> <string>幼圆</string> <string>YouYuan</string> </test> <edit mode="assign" name="globaladvance"> <bool>false</bool> </edit> </match> <config> <!-- Add by Firefly (firefly@firefly.idv.tw) Output non English/Latin family name. --> <familyoutput> <!--<const>auto</const>--> <!--const>englishonly</const--> <const>any</const> </familyoutput> </config> </fontconfig> 复制代码
Post by cocojumbal 哪段是显示中文字体名的?我想用英文字体名。 :thank
<familyoutput> <!--<const>auto</const>--> <!--const>englishonly</const--> <const>any</const> </familyoutput>
<familyoutput> <const>englishonly</const> </familyoutput>
本版积分规则 发表回复 回帖后跳转到最后一页