LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 1693|回复: 17

为每一个字体优化的 local.conf

[复制链接]
发表于 2005-1-3 22:45:21 | 显示全部楼层 |阅读模式
没有字体替换部分,以后再写

  1. <?xml version="1.0"?>
  2. <!DOCTYPE fontconfig SYSTEM "fonts.dtd">
  3. <!-- /etc/fonts/local.conf file for local customizations -->
  4. <fontconfig>
  5. <dir>/usr/share/fonts</dir>
  6. <dir>/usr/share/fonts/ttf/zh_CN</dir>
  7. <dir>/usr/share/fonts/zh_CN</dir>
  8. <dir>/usr/share/fonts/st</dir>
  9. <dir>/usr/local/share/fonts</dir>
  10. <dir>/usr/share/fonts/zh_CN/TrueType</dir>
  11.        
  12.         <!--
  13.           Enable sub-pixel rendering
  14.                 <match target="font">
  15.                         <test qual="all" name="rgba">
  16.                                 <const>unknown</const>
  17.                         </test>
  18.                         <edit name="rgba" mode="assign">
  19.                                 <const>rgb</const>
  20.                         </edit>
  21.                 </match>
  22.         -->
  23.        
  24.         <!--
  25.           Add by Firefly(firefly@firefly.idv.tw)
  26.         -->
  27.         <match target="font">
  28.                 <edit name="embeddedbitmap" mod="assign">
  29.                         <bool>true</bool>
  30.                 </edit>
  31.         </match>
  32.        
  33.         <!--
  34.           Add by Firefly(firefly@firefly.idv.tw)
  35.           Most of Asian fonts can't explain by freetype2,
  36.           so,if these fonts have dual width(half/full) and monospacing,
  37.           you need to disable globaladvance.
  38.          -->
  39.          
  40.         <match target="font">
  41.                 <test compare="more_eq" name="spacing">
  42.                         <const>dual</const>
  43.                 </test>
  44.                 <edit mode="assign" name="globaladvance">
  45.                         <bool>false</bool>
  46.                 </edit>
  47.         </match>
  48.        
  49.         <!--
  50.          Add by firefly@firefly.idv.tw
  51.          Artificial bold for fonts without a bold version.
  52.          -->
  53.         <match target="font">
  54.                 <!-- check to see if the pattern requested> "medium" -->
  55.                 <test compare="more" target="pattern" name="weight">
  56.                         <const>medium</const>
  57.                 </test>
  58.                 <!-- pretend the font is bold now -->
  59.                 <edit mode="assign" name="weight">
  60.                         <const>bold</const>
  61.                 </edit>
  62.         </match>

  63.        
  64.         <!--
  65.         default settings for all fonts.
  66.         -->
  67.        
  68.         <match target="font">
  69.                 <edit mode="assign" name="antialias">
  70.                         <bool>true</bool>
  71.                 </edit>
  72.                 <edit mode="assign" name="hintstyle">
  73.                         <const>hintslight</const>
  74.                 </edit>
  75.                 <edit mode="assign" name="hint">
  76.                         <bool>true</bool>
  77.                 </edit>
  78.                 <edit mode="assign" name="autohint">
  79.                         <bool>false</bool>
  80.                 </edit>
  81.         </match>
  82.        
  83.         <match target="font">
  84.                 <test compare="contains" target="pattern" name="lang">
  85.                         <string>zh-cn</string>
  86.                         <string>zh-tw</string>
  87.                         <string>ja</string>
  88.                         <string>ko</string>
  89.                 </test>
  90.                 <test compare="eq" name="spacing">
  91.                         <const>mono</const>
  92.                 </test>
  93.                 <edit mode="assign" name="globaladvance">
  94.                         <bool>false</bool>
  95.                 </edit>
  96.         </match>
  97.        
  98.         <!--
  99.           Add by firefly@firefly.idv.tw
  100.         -->
  101.         <match target="font">
  102.                 <test compare="contains" name="lang">
  103.                         <string>zh-cn</string>
  104.                         <string>zh-tw</string>
  105.                         <string>ja</string>
  106.                         <string>ko</string>
  107.                 </test>
  108.                 <edit mode="assign" name="hint">
  109.                         <bool>true</bool>
  110.                 </edit>
  111.                 <edit mode="assign" name="autohint">
  112.                         <bool>false</bool>
  113.                 </edit>
  114.                 <edit mode="assign" name="hintstyle">
  115.                         <const>hintslight</const>
  116.                 </edit>
  117.                 <edit mode="assign" name="usegamma">
  118.                 <if>
  119.                         <less>
  120.                         <name>pixelsize</name>
  121.                                 <double>20</double>
  122.                         </less>
  123.                 </if>
  124.                 <bool>true</bool>
  125.                 </edit>
  126.         </match>


  127.          <match target="font">
  128.                 <test name="family" qual="any">
  129.                         <string>宋体</string>
  130.                         <string>新宋体</string>
  131.                         <string>SimSun</string>
  132.                         <string>NSimSun</string>
  133.                         <string>文鼎 PL 新宋</string>
  134.                         <string>AR PL New Sung</string>
  135.                 </test>
  136.                 <test compare="more_eq" name="size">
  137.                         <int>4</int>
  138.                 </test>
  139.                 <test compare="less_eq" name="size">
  140.                         <int>8</int>
  141.                 </test>
  142.                 <edit mode="assign" name="size">
  143.                         <int>9</int>
  144.                 </edit>
  145.         </match>
  146.        
  147.         <match target="font">
  148.                 <test name="family" qual="any">
  149.                         <string>宋体</string>
  150.                         <string>新宋体</string>
  151.                         <string>SimSun</string>
  152.                         <string>NSimSun</string>
  153.                 </test>
  154.                 <test compare="more_eq" name="size">
  155.                         <int>4</int>
  156.                 </test>
  157.                 <test compare="less_eq" name="size">
  158.                         <int>18</int>
  159.                 </test>
  160.                 <edit mode="assign" name="antialias">
  161.                         <bool>false</bool>
  162.                 </edit>
  163.         </match>
  164.        
  165.         <match target="font">
  166.                 <test name="family" qual="any">
  167.                         <string>Tahoma</string>
  168.                 </test>
  169.                 <test compare="more_eq" name="size">
  170.                         <int>4</int>
  171.                 </test>
  172.                 <test compare="less_eq" name="size">
  173.                         <int>16</int>
  174.                 </test>
  175.                 <edit mode="assign" name="antialias">
  176.                         <bool>false</bool>
  177.                 </edit>
  178.         </match>
  179.        
  180.         <match target="font">
  181.                 <test name="family" qual="any">
  182.                         <string>Bitstream Vera Sans Mono</string>
  183.                         <string>Bitstream Vera Sans</string>
  184.                         <string>Bitstream Vera Serif</string>
  185.                 </test>
  186.                 <test compare="more_eq" name="size">
  187.                         <int>4</int>
  188.                 </test>
  189.                 <test compare="less_eq" name="size">
  190.                         <int>16</int>
  191.                 </test>
  192.                 <edit mode="assign" name="antialias">
  193.                         <bool>false</bool>
  194.                 </edit>
  195.         </match>
  196.        
  197.         <match target="font">
  198.                 <test name="family" qual="any">
  199.                         <string>东文仿宋</string>
  200.                         <string>东文宋体</string>
  201.                         <string>东文楷体</string>
  202.                         <string>DongWen FangSong</string>
  203.                         <string>DongWen KaiTi</string>
  204.                         <string>DongWen SongTi</string>
  205.                 </test>
  206.                 <test compare="more_eq" name="size">
  207.                         <int>4</int>
  208.                 </test>
  209.                 <test compare="less_eq" name="size">
  210.                         <int>16</int>
  211.                 </test>
  212.                 <edit mode="assign" name="antialias">
  213.                         <bool>false</bool>
  214.                 </edit>
  215.         </match>
  216.        
  217.         <match target="font">
  218.                 <test name="family" qual="any">
  219.                         <string>东文仿宋</string>
  220.                         <string>东文宋体</string>
  221.                         <string>东文楷体</string>
  222.                         <string>DongWen FangSong</string>
  223.                         <string>DongWen KaiTi</string>
  224.                         <string>DongWen SongTi</string>
  225.                         <string>华文仿宋</string>
  226.                         <string>华文宋体</string>
  227.                         <string>华文楷体</string>
  228.                         <string>STSong</string>
  229.                         <string>STKaiTi</string>
  230.                         <string>STFangSong</string>
  231.                 </test>
  232.                 <test compare="more_eq" name="size">
  233.                         <int>4</int>
  234.                 </test>
  235.                 <test compare="less_eq" name="size">
  236.                         <int>16</int>
  237.                 </test>
  238.                 <edit mode="assign" name="antialias">
  239.                         <bool>false</bool>
  240.                 </edit>
  241.         </match>

  242.         <match target="font">
  243.                 <test name="family" qual="any">
  244.                         <string>东文仿宋</string>
  245.                         <string>东文宋体</string>
  246.                         <string>DongWen FangSong</string>
  247.                         <string>DongWen SongTi</string>
  248.                         <string>华文仿宋</string>
  249.                         <string>华文宋体</string>
  250.                         <string>STSong</string>
  251.                         <string>STFangSong</string>
  252.                         <string>华文彩云</string>
  253.                         <string>STCaiyun</string>
  254.                 </test>
  255.                 <test compare="more_eq" name="size">
  256.                         <int>18</int>
  257.                 </test>
  258.                 <test compare="less_eq" name="size">
  259.                         <int>28</int>
  260.                 </test>
  261.                 <edit mode="assign" name="usegamma">
  262.                         <bool>true</bool>
  263.                 </edit>
  264.         </match>
  265.        
  266.         <match target="font">
  267.                 <test name="family" qual="any">
  268.                         <string>华文中宋</string>
  269.                         <string>STZhongSong</string>
  270.                 </test>
  271.                 <test compare="more_eq" name="size">
  272.                         <int>4</int>
  273.                 </test>
  274.                 <test compare="less_eq" name="size">
  275.                         <int>13</int>
  276.                 </test>
  277.                 <edit mode="assign" name="antialias">
  278.                         <bool>false</bool>
  279.                 </edit>
  280.         </match>
  281.        
  282.         <match target="font">
  283.                 <test name="family" qual="any">
  284.                         <string>幼圆</string>
  285.                         <string>YouYuan</string>
  286.                 </test>
  287.                 <test compare="more_eq" name="size">
  288.                         <int>4</int>
  289.                 </test>
  290.                 <test compare="less_eq" name="size">
  291.                         <int>20</int>
  292.                 </test>
  293.                 <edit mode="assign" name="usegamma">
  294.                         <bool>true</bool>
  295.                 </edit>
  296.         </match>
  297.        
  298.         <match target="font">
  299.                 <test name="family" qual="any">
  300.                         <string>方正宋一_GB18030</string>
  301.                         <string>FZSongYi-Z13_GB18030</string>
  302.                 </test>
  303.                 <test compare="more_eq" name="size">
  304.                         <int>4</int>
  305.                 </test>
  306.                 <test compare="less_eq" name="size">
  307.                         <int>20</int>
  308.                 </test>
  309.                 <edit mode="assign" name="usegamma">
  310.                         <bool>true</bool>
  311.                 </edit>
  312.         </match>
  313.        
  314.         <match target="font">
  315.                 <test name="family" qual="any">
  316.                         <string>方正宋体</string>
  317.                         <string>FZSongTi</string>
  318.                 </test>
  319.                 <test compare="more_eq" name="size">
  320.                         <int>4</int>
  321.                 </test>
  322.                 <test compare="less_eq" name="size">
  323.                         <int>14</int>
  324.                 </test>
  325.                 <edit mode="assign" name="antialias">
  326.                         <bool>false</bool>
  327.                 </edit>
  328.         </match>
  329.        
  330.         <match target="font">
  331.                 <test name="family" qual="any">
  332.                         <string>方正楷体</string>
  333.                         <string>方正楷体_GB18030</string>
  334.                         <string>FZKaiTi</string>
  335.                         <string>FZKai-Z03_GB18030</string>
  336.                 </test>
  337.                 <test compare="more_eq" name="size">
  338.                         <int>4</int>
  339.                 </test>
  340.                 <test compare="less_eq" name="size">
  341.                         <int>14</int>
  342.                 </test>
  343.                 <edit mode="assign" name="usegamma">
  344.                         <bool>true</bool>
  345.                 </edit>
  346.         </match>
  347.        
  348.         <match target="font">
  349.                 <test name="family" qual="any">
  350.                         <string>方正仿宋体</string>
  351.                         <string>方正仿宋_GB18030</string>
  352.                         <string>方正宋体</string>
  353.                         <string>FZFangSong-Z02_GB18030</string>
  354.                         <string>FZFangSongTi</string>
  355.                         <string>FZSongTi</string>
  356.                 </test>
  357.                 <test compare="more_eq" name="size">
  358.                         <int>4</int>
  359.                 </test>
  360.                 <test compare="less_eq" name="size">
  361.                         <int>32</int>
  362.                 </test>
  363.                 <edit mode="assign" name="usegamma">
  364.                         <bool>true</bool>
  365.                 </edit>
  366.         </match>
  367.        
  368.         <match target="font">
  369.                 <test name="family" qual="any">
  370.                         <string>Ming</string>
  371.                         <string>Ming(for ISO10646)</string>
  372.                 </test>
  373.                 <test compare="more_eq" name="size">
  374.                         <int>4</int>
  375.                 </test>
  376.                 <test compare="less_eq" name="size">
  377.                         <int>32</int>
  378.                 </test>
  379.                 <edit mode="assign" name="usegamma">
  380.                         <bool>true</bool>
  381.                 </edit>
  382.         </match>
  383.        
  384.         <match target="font">
  385.                 <test name="family" qual="any">
  386.                         <string>新宋体</string>
  387.                         <string>NSimSun</string>
  388.                         <string>隶书</string>
  389.                         <string>LiSu</string>
  390.                         <string>幼圆</string>
  391.                         <string>YouYuan</string>
  392.                 </test>
  393.                 <edit mode="assign" name="globaladvance">
  394.                         <bool>false</bool>
  395.                 </edit>
  396.         </match>
  397.        
  398.         <match target="font">
  399.                 <test name="family" qual="any">
  400.                         <string>儷宋 Pro</string>
  401.                         <string>LiSong Pro</string>
  402.                         <string>文鼎 PL 細上海宋</string>
  403.                         <string>文鼎 PL 新宋</string>
  404.                         <string>AR PL New Sung</string>
  405.                         <string>AR PL SungtiL GB</string>
  406.                         <string>AR PL MingTi2L Big5</string>
  407.                         <string>Nimbus Mono L</string>
  408.                 </test>
  409.                 <test compare="more_eq" name="size">
  410.                         <int>4</int>
  411.                 </test>
  412.                 <test compare="less_eq" name="size">
  413.                         <int>26</int>
  414.                 </test>
  415.                 <edit mode="assign" name="usegamma">
  416.                         <bool>true</bool>
  417.                 </edit>
  418.         </match>
  419.        
  420.         <match target="font">
  421.                 <test name="family" qual="any">
  422.                         <string>仿宋_GB2312</string>
  423.                         <string>文鼎 PL 中楷</string>
  424.                         <string>文鼎 PL 简中楷</string>
  425.                         <string>文鼎 PL 简报宋</string>
  426.                         <string>FangSong_GB2312</string>
  427.                         <string>Dingbats</string>
  428.                         <string>AR PL KaitiM Big5</string>
  429.                         <string>AR PL KaitiM GB</string>
  430.                         <string>KaiTi_GB2312</string>
  431.                 </test>
  432.                 <test compare="more_eq" name="size">
  433.                         <int>4</int>
  434.                 </test>
  435.                 <test compare="less_eq" name="size">
  436.                         <int>20</int>
  437.                 </test>
  438.                 <edit mode="assign" name="usegamma">
  439.                         <bool>true</bool>
  440.                 </edit>
  441.         </match>
  442.        
  443.         <config>
  444.         <!--
  445.         Add by Firefly (firefly@firefly.idv.tw)
  446.         Output non English/Latin family name.
  447.         -->
  448.                 <familyoutput>
  449.                         <!--<const>auto</const>-->
  450.                         <!--const>englishonly</const-->
  451.                         <const>any</const>
  452.                 </familyoutput>
  453.         </config>

  454. </fontconfig>

复制代码

本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有帐号?注册

x
发表于 2005-1-4 01:14:34 | 显示全部楼层
总体来看是一篇非AA的解决方案
最终效果就是像win那样清晰、细腻的显示,而不是mac os x那样
觉得最好是用程序自动判断字体有无内嵌点阵、hinting,以及包含内嵌点阵、hinting的pixelsize,然后据此生成fonts.conf
发表于 2005-1-4 10:53:47 | 显示全部楼层
这个local.conf不错。
发表于 2005-1-4 11:02:30 | 显示全部楼层
Post by sunmoon1997
没有字体替换部分,以后再写

  1. <?xml version="1.0"?>
  2. <!DOCTYPE fontconfig SYSTEM "fonts.dtd">
  3. <!-- /etc/fonts/local.conf file for local customizations -->
  4. <fontconfig>
  5. <dir>/usr/share/fonts</dir>
  6. <dir>/usr/share/fonts/ttf/zh_CN</dir>
  7.        
  8.         <!--
  9.           Enable sub-pixel rendering
  10.                 <match target="font">
  11.                         <test qual="all" name="rgba">
  12.                                 <const>unknown</const>
  13.                         </test>
  14.                         <edit name="rgba" mode="assign">
  15.                                 <const>rgb</const>
  16.                         </edit>
  17.                 </match>
  18.         -->
  19.        
  20.         <!--
  21.           Add by Firefly(firefly@firefly.idv.tw)
  22.         -->
  23.         <match target="font">
  24.                 <edit name="embeddedbitmap" mod="assign">
  25.                         <bool>true</bool>
  26.                 </edit>
  27.         </match>
  28.        
  29.         <!--
  30.           Add by Firefly(firefly@firefly.idv.tw)
  31.           Most of Asian fonts can't explain by freetype2,
  32.           so,if these fonts have dual width(half/full) and monospacing,
  33.           you need to disable globaladvance.
  34.          -->
  35.          
  36.         <match target="font">
  37.                 <test compare="more_eq" name="spacing">
  38.                         <const>dual</const>
  39.                 </test>
  40.                 <edit mode="assign" name="globaladvance">
  41.                         <bool>false</bool>
  42.                 </edit>
  43.         </match>
  44.        
  45.         <!--
  46.          Add by firefly@firefly.idv.tw
  47.          Artificial bold for fonts without a bold version.
  48.          -->
  49.         <match target="font">
  50.                 <!-- check to see if the pattern requested> "medium" -->
  51.                 <test compare="more" target="pattern" name="weight">
  52.                         <const>medium</const>
  53.                 </test>
  54.                 <!-- pretend the font is bold now -->
  55.                 <edit mode="assign" name="weight">
  56.                         <const>bold</const>
  57.                 </edit>
  58.         </match>

  59.        
  60.         <!--
  61.         default settings for all fonts.
  62.         -->
  63.        
  64.         <match target="font">
  65.                 <edit mode="assign" name="antialias">
  66.                         <bool>true</bool>
  67.                 </edit>
  68.                 <edit mode="assign" name="hintstyle">
  69.                         <const>hintslight</const>
  70.                 </edit>
  71.                 <edit mode="assign" name="hint">
  72.                         <bool>true</bool>
  73.                 </edit>
  74.                 <edit mode="assign" name="autohint">
  75.                         <bool>false</bool>
  76.                 </edit>
  77.         </match>
  78.        
  79.         <match target="font">
  80.                 <test compare="contains" target="pattern" name="lang">
  81.                         <string>zh-cn</string>
  82.                         <string>zh-tw</string>
  83.                         <string>ja</string>
  84.                         <string>ko</string>
  85.                 </test>
  86.                 <test compare="eq" name="spacing">
  87.                         <const>mono</const>
  88.                 </test>
  89.                 <edit mode="assign" name="globaladvance">
  90.                         <bool>false</bool>
  91.                 </edit>
  92.         </match>
  93.        
  94.         <!--
  95.           Add by firefly@firefly.idv.tw
  96.         -->
  97.         <match target="font">
  98.                 <test compare="contains" name="lang">
  99.                         <string>zh-cn</string>
  100.                         <string>zh-tw</string>
  101.                         <string>ja</string>
  102.                         <string>ko</string>
  103.                 </test>
  104.                 <edit mode="assign" name="hint">
  105.                         <bool>true</bool>
  106.                 </edit>
  107.                 <edit mode="assign" name="autohint">
  108.                         <bool>false</bool>
  109.                 </edit>
  110.                 <edit mode="assign" name="hintstyle">
  111.                         <const>hintslight</const>
  112.                 </edit>
  113.                 <edit mode="assign" name="usegamma">
  114.                 <if>
  115.                         <less>
  116.                         <name>pixelsize</name>
  117.                                 <double>20</double>
  118.                         </less>
  119.                 </if>
  120.                 <bool>true</bool>
  121.                 </edit>
  122.         </match>


  123.          <match target="font">
  124.                 <test name="family" qual="any">
  125.                         <string>宋体</string>
  126.                         <string>新宋体</string>
  127.                         <string>SimSun</string>
  128.                         <string>NSimSun</string>
  129.                 </test>
  130.                 <test compare="more_eq" name="pixelsize">
  131.                         <int>8</int>
  132.                 </test>
  133.                 <test compare="less_eq" name="pixelsize">
  134.                         <int>12</int>
  135.                 </test>
  136.                 <edit mode="assign" name="pixelsize">
  137.                         <int>12</int>
  138.                 </edit>
  139.         </match>
  140.        
  141.         <match target="font">
  142.                 <test name="family" qual="any">
  143.                         <string>宋体</string>
  144.                         <string>新宋体</string>
  145.                         <string>SimSun</string>
  146.                         <string>NSimSun</string>
  147.                 </test>
  148.                 <test compare="more_eq" name="pixelsize">
  149.                         <int>12</int>
  150.                 </test>
  151.                 <test compare="less_eq" name="pixelsize">
  152.                         <int>18</int>
  153.                 </test>
  154.                 <edit mode="assign" name="antialias">
  155.                         <bool>false</bool>
  156.                 </edit>
  157.         </match>
  158.        
  159.         <match target="font">
  160.                 <test name="family" qual="any">
  161.                         <string>Tahoma</string>
  162.                 </test>
  163.                 <test compare="more_eq" name="pixelsize">
  164.                         <int>12</int>
  165.                 </test>
  166.                 <test compare="less_eq" name="pixelsize">
  167.                         <int>18</int>
  168.                 </test>
  169.                 <edit mode="assign" name="antialias">
  170.                         <bool>false</bool>
  171.                 </edit>
  172.         </match>
  173.        
  174.         <match target="font">
  175.                 <test name="family" qual="any">
  176.                         <string>Bitstream Vera Sans Mono</string>
  177.                         <string>Bitstream Vera Sans</string>
  178.                         <string>Bitstream Vera Serif</string>
  179.                 </test>
  180.                 <test compare="more_eq" name="size">
  181.                         <int>4</int>
  182.                 </test>
  183.                 <test compare="less_eq" name="size">
  184.                         <int>16</int>
  185.                 </test>
  186.                 <edit mode="assign" name="antialias">
  187.                         <bool>false</bool>
  188.                 </edit>
  189.         </match>
  190.        
  191.         <match target="font">
  192.                 <test name="family" qual="any">
  193.                         <string>东文仿宋</string>
  194.                         <string>东文宋体</string>
  195.                         <string>东文楷体</string>
  196.                         <string>DongWen FangSong</string>
  197.                         <string>DongWen KaiTi</string>
  198.                         <string>DongWen SongTi</string>
  199.                 </test>
  200.                 <test compare="more_eq" name="size">
  201.                         <int>4</int>
  202.                 </test>
  203.                 <test compare="less_eq" name="size">
  204.                         <int>16</int>
  205.                 </test>
  206.                 <edit mode="assign" name="antialias">
  207.                         <bool>false</bool>
  208.                 </edit>
  209.         </match>
  210.        
  211.         <match target="font">
  212.                 <test name="family" qual="any">
  213.                         <string>东文仿宋</string>
  214.                         <string>东文宋体</string>
  215.                         <string>东文楷体</string>
  216.                         <string>DongWen FangSong</string>
  217.                         <string>DongWen KaiTi</string>
  218.                         <string>DongWen SongTi</string>
  219.                         <string>华文仿宋</string>
  220.                         <string>华文宋体</string>
  221.                         <string>华文楷体</string>
  222.                         <string>STSong</string>
  223.                         <string>STKaiTi</string>
  224.                         <string>STFangSong</string>
  225.                 </test>
  226.                 <test compare="more_eq" name="size">
  227.                         <int>4</int>
  228.                 </test>
  229.                 <test compare="less_eq" name="size">
  230.                         <int>16</int>
  231.                 </test>
  232.                 <edit mode="assign" name="antialias">
  233.                         <bool>false</bool>
  234.                 </edit>
  235.         </match>

  236.         <match target="font">
  237.                 <test name="family" qual="any">
  238.                         <string>东文仿宋</string>
  239.                         <string>东文宋体</string>
  240.                         <string>DongWen FangSong</string>
  241.                         <string>DongWen SongTi</string>
  242.                         <string>华文仿宋</string>
  243.                         <string>华文宋体</string>
  244.                         <string>STSong</string>
  245.                         <string>STFangSong</string>
  246.                 </test>
  247.                 <test compare="more_eq" name="size">
  248.                         <int>18</int>
  249.                 </test>
  250.                 <test compare="less_eq" name="size">
  251.                         <int>28</int>
  252.                 </test>
  253.                 <edit mode="assign" name="usegamma">
  254.                         <bool>true</bool>
  255.                 </edit>
  256.         </match>
  257.        
  258.         <match target="font">
  259.                 <test name="family" qual="any">
  260.                         <string>华文中宋</string>
  261.                         <string>STZhongSong</string>
  262.                 </test>
  263.                 <test compare="more_eq" name="size">
  264.                         <int>4</int>
  265.                 </test>
  266.                 <test compare="less_eq" name="size">
  267.                         <int>13</int>
  268.                 </test>
  269.                 <edit mode="assign" name="antialias">
  270.                         <bool>false</bool>
  271.                 </edit>
  272.         </match>
  273.        
  274.         <match target="font">
  275.                 <test name="family" qual="any">
  276.                         <string>幼圆</string>
  277.                         <string>YouYuan</string>
  278.                 </test>
  279.                 <test compare="more_eq" name="size">
  280.                         <int>4</int>
  281.                 </test>
  282.                 <test compare="less_eq" name="size">
  283.                         <int>20</int>
  284.                 </test>
  285.                 <edit mode="assign" name="usegamma">
  286.                         <bool>true</bool>
  287.                 </edit>
  288.         </match>
  289.        
  290.         <match target="font">
  291.                 <test name="family" qual="any">
  292.                         <string>方正宋一_GB18030</string>
  293.                         <string>FZSongYi-Z13_GB18030</string>
  294.                 </test>
  295.                 <test compare="more_eq" name="size">
  296.                         <int>4</int>
  297.                 </test>
  298.                 <test compare="less_eq" name="size">
  299.                         <int>20</int>
  300.                 </test>
  301.                 <edit mode="assign" name="usegamma">
  302.                         <bool>true</bool>
  303.                 </edit>
  304.         </match>
  305.        
  306.         <match target="font">
  307.                 <test name="family" qual="any">
  308.                         <string>方正宋体</string>
  309.                         <string>方正楷体</string>
  310.                         <string>方正楷体_GB18030</string>
  311.                         <string>FZSongTi</string>
  312.                         <string>FZKaiTi</string>
  313.                         <string>FZKai-Z03_GB18030</string>
  314.                 </test>
  315.                 <test compare="more_eq" name="size">
  316.                         <int>4</int>
  317.                 </test>
  318.                 <test compare="less_eq" name="size">
  319.                         <int>16</int>
  320.                 </test>
  321.                 <edit mode="assign" name="antialias">
  322.                         <bool>false</bool>
  323.                 </edit>
  324.         </match>
  325.        
  326.         <match target="font">
  327.                 <test name="family" qual="any">
  328.                         <string>方正仿宋</string>
  329.                         <string>方正仿宋_GB18030</string>
  330.                         <string>FZFangSong-Z02_GB18030</string>
  331.                         <string>FZFangSongTi</string>
  332.                 </test>
  333.                 <test compare="more_eq" name="size">
  334.                         <int>4</int>
  335.                 </test>
  336.                 <test compare="less_eq" name="size">
  337.                         <int>32</int>
  338.                 </test>
  339.                 <edit mode="assign" name="usegamma">
  340.                         <bool>true</bool>
  341.                 </edit>
  342.         </match>
  343.        
  344.         <match target="font">
  345.                 <test name="family" qual="any">
  346.                         <string>Ming</string>
  347.                         <string>Ming for iso10646</string>
  348.                 </test>
  349.                 <test compare="more_eq" name="size">
  350.                         <int>4</int>
  351.                 </test>
  352.                 <test compare="less_eq" name="size">
  353.                         <int>32</int>
  354.                 </test>
  355.                 <edit mode="assign" name="usegamma">
  356.                         <bool>true</bool>
  357.                 </edit>
  358.         </match>
  359.        
  360.         <match target="font">
  361.                 <test name="family" qual="any">
  362.                         <string>隶书</string>
  363.                         <string>LiSu</string>
  364.                         <string>幼圆</string>
  365.                         <string>YouYuan</string>
  366.                 </test>
  367.                 <edit mode="assign" name="globaladvance">
  368.                         <bool>false</bool>
  369.                 </edit>
  370.         </match>
  371.        
  372.         <config>
  373.         <!--
  374.         Add by Firefly (firefly@firefly.idv.tw)
  375.         Output non English/Latin family name.
  376.         -->
  377.                 <familyoutput>
  378.                         <!--<const>auto</const>-->
  379.                         <!--const>englishonly</const-->
  380.                         <const>any</const>
  381.                 </familyoutput>
  382.         </config>

  383. </fontconfig>


复制代码



大哥能不能写个针对文鼎新宋的local.conf啊,谢谢
发表于 2005-1-4 11:02:55 | 显示全部楼层
这个文件里面的汉字编码是不是应该utf-8?!sunmoon兄没有说明白哦。
发表于 2005-1-4 12:22:24 | 显示全部楼层
哪段是显示中文字体名的?我想用英文字体名。 :thank
发表于 2005-1-4 13:49:38 | 显示全部楼层
Post by cocojumbal
哪段是显示中文字体名的?我想用英文字体名。 :thank
               <familyoutput>
                        <!--<const>auto</const>-->
                        <!--const>englishonly</const-->
                        <const>any</const>
                </familyoutput>

改为
               <familyoutput>
                        <const>englishonly</const>
                </familyoutput>
发表于 2005-1-4 14:52:07 | 显示全部楼层
改好啦。
觉得sunmoon的local.conf写得太多了,我用了字体反而模糊。
把那些对字体的设定全删了,只对simsun,tahoma,verdana关AA效果反而好。
是不是我用的是官方的freetype-2.1.5,没用glc里的freetype?
 楼主| 发表于 2005-1-4 16:23:43 | 显示全部楼层
更新了一下.
发表于 2005-1-5 08:48:11 | 显示全部楼层
运行gcursor时提示:
Fontconfig warning: "local.conf", line 453: unknown element "familyoutput"
您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表