LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
12
返回列表 发新帖
楼主: sunmoon1997

字体使用AA的请进~~

[复制链接]
发表于 2004-10-5 14:02:22 | 显示全部楼层
最初由 cocojumbal 发表
贴fonts.conf的同时再贴上截图吧。

http://www.linuxsir.cn/bbs/showt ... 15&pagenumber=2
发表于 2004-10-5 14:53:03 | 显示全部楼层
中文字体既然要用simsun,我觉得还是关掉AA的好。
英文用Bitstream Vera,实在很难和simsun协调。


发表于 2004-10-5 15:11:06 | 显示全部楼层
Beautiful!  Please post your relevant config files for our references.

btw I use AA because they look nice on my 17" LCD (with 1280x1024 resolution).  Of course,  I understand that with AA turned on, the fonts may not look so clearly on other people's monitors.
发表于 2004-10-5 15:22:03 | 显示全部楼层

问一个比较菜的问题,

怎样打开或关闭AA?
发表于 2004-10-5 15:36:07 | 显示全部楼层
最初由 Hauser 发表
Beautiful!  Please post your relevant config files for our references.

btw I use AA because they look nice on my 17" LCD (with 1280x1024 resolution).  Of course,  I understand that with AA turned on, the fonts may not look so clearly on other people's monitors.

惭愧,我的fonts.conf一直是用Magic Linux的,只字未改。:p

fonts.conf

  1. <?xml version="1.0"?>
  2. <!DOCTYPE fontconfig SYSTEM "fonts.dtd">
  3. <!-- /etc/fonts.conf file to configure system font access -->
  4. <fontconfig>

  5. <!--
  6.         The intent of this standard configuration file is to be adequate for
  7.         most environments.  If you have a reasonably normal environment and
  8.         have found problems with this configuration, they are probably
  9.         things that others will also want fixed.  Please send any suggested
  10.         changes to [email]fonts@xfree86.org[/email] so that future releases can include
  11.         such changes.

  12.         Note that the normal 'make install' procedure for XFree86 is to
  13.         replace any existing fonts.conf file with the new version.  Place
  14.         any local customizations in local.conf which this file references.

  15.         Keith Packard
  16. -->


  17.         <dir>/usr/X11R6/lib/X11/fonts</dir>
  18.         <dir>/usr/share/fonts</dir>
  19.         <dir>~/.fonts</dir>

  20. <!--
  21.   Enable sub-pixel rendering
  22.         <match target="font">
  23.                 <test qual="all" name="rgba">
  24.                         <const>unknown</const>
  25.                 </test>
  26.                 <edit name="rgba" mode="assign"><const>rgb</const></edit>
  27.         </match>
  28. -->

  29. <!--
  30.   Accept deprecated 'mono' alias, replacing it with 'monospace'
  31. -->
  32.         <match target="pattern">
  33.                 <test qual="any" name="family">
  34.                         <string>mono</string>
  35.                 </test>
  36.                 <edit name="family" mode="assign">
  37.                         <string>monospace</string>
  38.                 </edit>
  39.         </match>

  40. <!--
  41.   Accept alternate 'sans serif' spelling, replacing it with 'sans-serif'
  42. -->
  43.         <match target="pattern">
  44.                 <test qual="any" name="family">
  45.                         <string>sans serif</string>
  46.                 </test>
  47.                 <edit name="family" mode="assign">
  48.                         <string>sans-serif</string>
  49.                 </edit>
  50.         </match>

  51. <!--
  52.   Accept deprecated 'sans' alias, replacing it with 'sans-serif'
  53. -->
  54.         <match target="pattern">
  55.                 <test qual="any" name="family">
  56.                         <string>sans</string>
  57.                 </test>
  58.                 <edit name="family" mode="assign">
  59.                         <string>sans-serif</string>
  60.                 </edit>
  61.         </match>

  62. <!--
  63.   Mark common families with their generics so we'll get
  64.   something reasonable
  65. -->

  66. <!--
  67.   Serif faces
  68. -->
  69.         <alias>
  70.                 <family>Times</family>
  71.                 <family>Times New Roman</family>
  72.                 <family>Nimbus Roman No9 L</family>
  73.                 <family>Luxi Serif</family>
  74.                 <family>Simsun</family>
  75.                 <family>Kochi Mincho</family>
  76.                 <family>AR PL SungtiL GB</family>
  77.                 <family>AR PL Mingti2L Big5</family>
  78.                 <family>Baekmuk Batang</family>                       
  79.                 <default><family>serif</family></default>
  80.         </alias>
  81. <!--
  82.   Sans-serif faces
  83. -->
  84.         <alias>
  85.                 <family>Helvetica</family>
  86.                 <family>Arial</family>
  87.                 <family>Verdana</family>
  88.                 <family>Nimbus Sans L</family>
  89.                 <family>Luxi Sans</family>
  90.                 <family>SimSun</family>
  91.                 <family>Kochi Gothic</family>
  92.                 <family>AR PL KaitiM GB</family>
  93.                 <family>AR PL KaitiM Big5</family>
  94.                 <family>Baekmuk Dotum</family>
  95.                 <default><family>sans-serif</family></default>
  96.         </alias>
  97. <!--
  98.   Monospace faces
  99. -->
  100.         <alias>
  101.                 <family>Courier</family>
  102.                 <family>Courier New</family>
  103.                 <family>Andale Mono</family>
  104.                 <family>Luxi Mono</family>
  105.                 <family>Nimbus Mono L</family>
  106.                 <family>NSimSun</family>
  107.                 <default><family>monospace</family></default>
  108.         </alias>
  109. <!--
  110.   If the font still has no generic name, add sans-serif
  111. -->
  112.         <match target="pattern">
  113.                 <test qual="all" name="family" compare="not_eq">
  114.                         <string>sans-serif</string>
  115.                 </test>
  116.                 <test qual="all" name="family" compare="not_eq">
  117.                         <string>serif</string>
  118.                 </test>
  119.                 <test qual="all" name="family" compare="not_eq">
  120.                         <string>monospace</string>
  121.                 </test>
  122.                 <edit name="family" mode="append_last">
  123.                         <string>sans-serif</string>
  124.                 </edit>
  125.         </match>
  126.        
  127. <!--
  128.   Load per-user customization file
  129. -->
  130.         <include ignore_missing="yes">~/.fonts.conf</include>

  131. <!--
  132.   Load local system customization file
  133. -->
  134.         <include ignore_missing="yes">local.conf</include>

  135. <!--
  136.   Alias well known font names to available TrueType fonts
  137. -->
  138.         <alias>
  139.                 <family>Times</family>
  140.                 <accept><family>Times New Roman</family></accept>
  141.         </alias>
  142.         <alias>
  143.                 <family>Helvetica</family>
  144.                 <accept><family>Verdana</family></accept>
  145.         </alias>
  146.         <alias>
  147.                 <family>Arial</family>
  148.                 <accept><family>Verdana</family></accept>
  149.         </alias>
  150.         <alias>
  151.                 <family>Courier</family>
  152.                 <accept><family>Courier New</family></accept>
  153.         </alias>

  154. <!--
  155.   Provide required aliases for standard names
  156. -->
  157.         <alias>
  158.                 <family>serif</family>
  159.                 <prefer>
  160.                         <family>Times New Roman</family>
  161.                         <family>Nimbus Roman No9 L</family>
  162.                         <family>Luxi Serif</family>
  163.                         <family>Times</family>
  164.                         <family>Simsun</family>
  165.                         <family>Kochi Mincho</family>
  166.                         <family>AR PL SungtiL GB</family>
  167.                         <family>AR PL Mingti2L Big5</family>
  168.                         <family>Baekmuk Batang</family>
  169.                 </prefer>
  170.         </alias>
  171.         <alias>
  172.                 <family>sans-serif</family>
  173.                 <prefer>
  174.                         <family>Verdana</family>
  175.                         <family>Nimbus Sans L</family>
  176.                         <family>Luxi Sans</family>
  177.                         <family>Arial</family>
  178.                         <family>Helvetica</family>
  179.                         <family>SimSun</family>
  180.                         <family>Kochi Gothic</family>
  181.                         <family>AR PL KaitiM GB</family>
  182.                         <family>AR PL KaitiM Big5</family>
  183.                         <family>Baekmuk Dotum</family>

  184.                 </prefer>
  185.         </alias>
  186.         <alias>
  187.                 <family>monospace</family>
  188.                 <prefer>
  189.                         <family>Andale Mono</family>
  190.                         <family>Courier New</family>
  191.                         <family>Luxi Mono</family>
  192.                         <family>Nimbus Mono L</family>
  193.                         <family>Simsun</family>
  194.                         <family>Kochi Gothic</family>
  195.                         <family>AR PL KaitiM GB</family>
  196.                         <family>Baekmuk Dotum</family>
  197.                 </prefer>
  198.         </alias>

  199. <match target="font" >
  200.   <test compare="more" name="size" qual="any" >
  201.    <double>8</double>
  202.   </test>
  203.   <test compare="less" name="size" qual="any" >
  204.    <double>17</double>
  205.   </test>
  206.   <edit mode="assign" name="antialias" >
  207.    <bool>false</bool>
  208.   </edit>
  209. </match>

  210. <match target="font" >
  211.   <test compare="more" name="pixelsize" qual="any" >
  212.    <double>8</double>
  213.   </test>
  214.   <test compare="less" name="pixelsize" qual="any" >
  215.    <double>17</double>
  216.   </test>
  217.   <edit mode="assign" name="antialias" >
  218.    <bool>false</bool>
  219.   </edit>
  220. </match>

  221. <!--
  222. Artificial oblique for fonts without an italic or oblique version
  223. -->

  224.         <match target="font">
  225.                 <!-- check to see if the font is roman -->
  226.                 <test name="slant">
  227.                         <const>roman</const>
  228.                 </test>
  229.                 <!-- check to see if the pattern requested non-roman -->
  230.                 <test target="pattern" name="slant" compare="not_eq">
  231.                         <const>roman</const>
  232.                 </test>
  233.                 <!-- multiply the matrix to slant the font -->
  234.                 <edit name="matrix" mode="assign">
  235.                         <times>
  236.                                 <name>matrix</name>
  237.                                 <matrix><double>1</double><double>.2</double>
  238.                                         <double>0</double><double>1</double>
  239.                                 </matrix>
  240.                         </times>
  241.                 </edit>
  242.                 <edit name="antialias" mode="assign">
  243.                         <bool>flase</bool>
  244.                 </edit>
  245.                 <!-- pretend the font is oblique now -->
  246.                 <edit name="slant" mode="assign">
  247.                         <const>oblique</const>
  248.                 </edit>
  249.         </match>
  250. <!--
  251. Add by [email]firefly@firefly.idv.tw[/email]
  252. Artificial bold for fonts without a bold version.
  253. -->
  254.         <match target="font">
  255.                 <!-- check to see if the pattern requested > "medium" -->
  256.                 <test target="pattern" name="weight" compare="more">
  257.                         <const>medium</const>
  258.                 </test>
  259.                 <!-- pretend the font is bold now -->
  260.                 <edit name="weight" mode="assign">
  261.                         <const>bold</const>
  262.                 </edit>
  263.         </match>


  264. <match target="font">
  265.         <test target="pattern" name="lang" compare="contains">
  266.                 <string>zh-tw</string>
  267.                 <string>zh-cn</string>
  268.                 <string>ja</string>
  269.                 <string>ko</string>
  270.         </test>
  271.         <test name="spacing" compare="eq">
  272.                 <const>mono</const>
  273.         </test>
  274.         <edit name="globaladvance" mode="assign">
  275.                 <bool>false</bool>
  276.         </edit>
  277. </match>


  278. <config>
  279. <!--
  280.   These are the default Unicode chars that are expected to be blank
  281.   in fonts.  All other blank chars are assumed to be broken and
  282.   won't appear in the resulting charsets
  283. -->
  284.                 <blank>
  285.                         <int>0x0020</int>        <!-- SPACE -->
  286.                         <int>0x00a0</int>        <!-- NO-BREAK SPACE -->
  287.                         <int>0x00ad</int>        <!-- SOFT HYPHEN -->
  288.                         <int>0x115f</int>        <!-- HANGUL CHOSEONG FILLER -->
  289.                         <int>0x1160</int>        <!-- HANGUL JUNGSEONG FILLER -->
  290.                         <int>0x1680</int>        <!-- OGHAM SPACE MARK -->
  291.                         <int>0x2000</int>        <!-- EN QUAD -->
  292.                         <int>0x2001</int>        <!-- EM QUAD -->
  293.                         <int>0x2002</int>        <!-- EN SPACE -->
  294.                         <int>0x2003</int>        <!-- EM SPACE -->
  295.                         <int>0x2004</int>        <!-- THREE-PER-EM SPACE -->
  296.                         <int>0x2005</int>        <!-- FOUR-PER-EM SPACE -->
  297.                         <int>0x2006</int>        <!-- SIX-PER-EM SPACE -->
  298.                         <int>0x2007</int>        <!-- FIGURE SPACE -->
  299.                         <int>0x2008</int>        <!-- PUNCTUATION SPACE -->
  300.                         <int>0x2009</int>        <!-- THIN SPACE -->
  301.                         <int>0x200a</int>        <!-- HAIR SPACE -->
  302.                         <int>0x200b</int>        <!-- ZERO WIDTH SPACE -->
  303.                         <int>0x200c</int>        <!-- ZERO WIDTH NON-JOINER -->
  304.                         <int>0x200d</int>        <!-- ZERO WIDTH JOINER -->
  305.                         <int>0x200e</int>        <!-- LEFT-TO-RIGHT MARK -->
  306.                         <int>0x200f</int>        <!-- RIGHT-TO-LEFT MARK -->
  307.                         <int>0x2028</int>        <!-- LINE SEPARATOR -->
  308.                         <int>0x2029</int>        <!-- PARAGRAPH SEPARATOR -->
  309.                         <int>0x202a</int>        <!-- LEFT-TO-RIGHT EMBEDDING -->
  310.                         <int>0x202b</int>        <!-- RIGHT-TO-LEFT EMBEDDING -->
  311.                         <int>0x202c</int>        <!-- POP DIRECTIONAL FORMATTING -->
  312.                         <int>0x202d</int>        <!-- LEFT-TO-RIGHT OVERRIDE -->
  313.                         <int>0x202e</int>        <!-- RIGHT-TO-LEFT OVERRIDE -->
  314.                         <int>0x202f</int>        <!-- NARROW NO-BREAK SPACE -->
  315.                         <int>0x205f</int>        <!-- MEDIUM MATHEMATICAL SPACE -->
  316.                         <int>0x2060</int>        <!-- WORD JOINER -->
  317.                         <int>0x2061</int>        <!-- FUNCTION APPLICATION -->
  318.                         <int>0x2062</int>        <!-- INVISIBLE TIMES -->
  319.                         <int>0x2063</int>        <!-- INVISIBLE SEPARATOR -->
  320.                         <int>0x206A</int>        <!-- INHIBIT SYMMETRIC SWAPPING -->
  321.                         <int>0x206B</int>        <!-- ACTIVATE SYMMETRIC SWAPPING -->
  322.                         <int>0x206C</int>        <!-- INHIBIT ARABIC FORM SHAPING -->
  323.                         <int>0x206D</int>        <!-- ACTIVATE ARABIC FORM SHAPING -->
  324.                         <int>0x206E</int>        <!-- NATIONAL DIGIT SHAPES -->
  325.                         <int>0x206F</int>        <!-- NOMINAL DIGIT SHAPES -->
  326.                         <int>0x3000</int>        <!-- IDEOGRAPHIC SPACE -->
  327.                         <int>0x3164</int>        <!-- HANGUL FILLER -->
  328.                         <int>0xfeff</int>        <!-- ZERO WIDTH NO-BREAK SPACE -->
  329.                         <int>0xffa0</int>        <!-- HALFWIDTH HANGUL FILLER -->
  330.                         <int>0xfff9</int>        <!-- INTERLINEAR ANNOTATION ANCHOR -->
  331.                         <int>0xfffa</int>        <!-- INTERLINEAR ANNOTATION SEPARATOR -->
  332.                         <int>0xfffa</int>        <!-- INTERLINEAR ANNOTATION TERMINATOR -->
  333.                 </blank>
  334. <!--
  335.   Rescan configuration every 30 seconds when FcFontSetList is called
  336. -->
  337.                 <rescan>
  338.                         <int>30</int>
  339.                 </rescan>
  340.         <other_family>
  341.                         <bool>true</bool>
  342.                 </other_family>
  343.         </config>

  344. </fontconfig>
复制代码


local.conf:

  1. <?xml version="1.0"?>
  2. <!DOCTYPE fontconfig SYSTEM "fonts.dtd">
  3. <!-- /etc/fonts/local.conf file for local customizations -->
  4. <fontconfig>
  5. <!--
  6.   Enable sub-pixel rendering
  7.         <match target="font">
  8.                 <test qual="all" name="rgba">
  9.                         <const>unknown</const>
  10.                 </test>
  11.                 <edit name="rgba" mode="assign"><const>rgb</const></edit>
  12.         </match>
  13. -->
  14. <!--
  15.   Add by ***
  16.   Fix size of simsun
  17. -->   
  18.     <match target="font">
  19.         <test qual="any" name="family">
  20.         <string>SimSun</string>
  21.         </test>
  22.         <test name="pixelsize" compare="more_eq">
  23.         <int>9</int>
  24.         </test>
  25.         <test name="pixelsize" compare="less_eq">
  26.         <int>12</int>
  27.         </test>
  28.         <edit name="pixelsize" compare="eq">
  29.         <int>12</int>
  30.         </edit>
  31.     </match>

  32. </fontconfig>
复制代码
发表于 2004-10-5 19:05:04 | 显示全部楼层
Linuxsir的css写的实在不咋样,截图不说明问题
中文字体搞得过得去还是很容易的
英文字体么,截一个slashdot的图,和windows的多对比一下,自然体会出差距了
发表于 2004-10-5 23:08:49 | 显示全部楼层
这东西因人而异,显示器和显卡,甚至座位离显示器的距离都会有一点影响,虽然下午在公司的电脑看cocojumbal贴图挺不错,但在我这里如果用cocojumbal的配置,看起来并不舒服,字体太过纤细,英文字体甚至有点“毛虫”的效果。

本帖子中包含更多资源

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

x
发表于 2004-10-6 20:24:38 | 显示全部楼层
为什么大家还是写fonts.conf呢
我的local.conf

  1. <?xml version="1.0"?>
  2. <!DOCTYPE fontconfig SYSTEM "fonts.dtd">
  3. <!-- /etc/fonts/local.conf file for local customizations -->
  4. <fontconfig>
  5. <!--
  6.   Enable sub-pixel rendering
  7. -->
  8.         <match target="font">
  9.                 <edit name="rgba" mode="assign"><const>rgb</const></edit>
  10.         </match>
  11.         <dir>/usr/local/share/fonts</dir>
  12.         <dir>/usr/share/fonts</dir>
  13.         <dir>/usr/X11R6/lib/X11/fonts</dir>
  14.         <dir>/usr/share/fonts/msfonts</dir>
  15.         <dir>/usr/X11R6/lib/X11/fonts/truetype</dir>
  16.         <dir>/usr/X11R6/lib/X11/fonts/local</dir>
  17.         <dir>/usr/X11R6/lib/X11/fonts/misc</dir>
  18.         <dir>/usr/X11R6/lib/X11/fonts/Type1</dir>
  19.         <dir>/usr/X11R6/lib/X11/fonts/CID</dir>
  20.         <dir>/usr/X11R6/lib/X11/fonts/Speedo</dir>
  21.         <dir>/usr/share/fonts/ttf/korean</dir>
  22.         <dir>/usr/share/fonts/ttf/zh_CN</dir>
  23.         <dir>/usr/share/fonts/ttf/zh_TW</dir>
  24.         <dir>/usr/share/fonts/baekmuk</dir>
  25.         <dir>/usr/X11R6/lib/X11/fonts/75dpi</dir>
  26.         <dir>/usr/X11R6/lib/X11/fonts/100dpi</dir>
  27.         <dir>~/.fonts</dir>

  28. <!--
  29.         Default Fonts
  30. -->
  31. <alias>
  32.         <family>Times New Roman</family>
  33.         <family>Times</family>
  34.         <family>SimSun</family>
  35.         <family>MingLiU</family>
  36.         <default><family>serif</family></default>
  37. </alias>
  38. <alias>
  39.         <family>Tahoma</family>
  40.         <family>SimSun</family>
  41.         <family>MingLiU</family>
  42.         <default><family>sans-serif</family></default>
  43. </alias>
  44. <alias>
  45.         <family>Terminal</family>
  46.         <family>Courier New</family>
  47.         <family>SimSun</family>
  48.         <family>MingLiU</family>
  49.         <default><family>monospace</family></default>
  50. </alias>

  51. <alias>
  52.         <family>serif</family>
  53.         <prefer>
  54.                 <family>Times New Roman</family>
  55.                 <family>Times</family>
  56.                 <family>SimSun</family>
  57.                 <family>MingLiU</family>
  58.         </prefer>
  59. </alias>
  60. <alias>
  61.         <family>sans-serif</family>
  62.         <prefer>
  63.                 <family>Tahoma</family>
  64.                 <family>SimSun</family>
  65.                 <family>MingLiU</family>
  66.         </prefer>
  67. </alias>
  68. <alias>
  69.         <family>monospace</family>
  70.         <prefer>
  71.                 <family>Terminal</family>
  72.                 <family>Courier New</family>
  73.                 <family>SimSun</family>
  74.                 <family>MingLiU</family>
  75.         </prefer>
  76. </alias>
  77. <!-- use the clear fonts -->
  78. <!--
  79. <match target="font">
  80.         <test name="pixelsize" compare="less_eq">
  81.                 <double>16</double>
  82.         </test>
  83.         <test name="pixelsize" compare="more_eq">
  84.                 <double>8</double>
  85.         </test>
  86.         <edit name="antialias" mode="assign">
  87.                 <bool>false</bool>
  88.         </edit>
  89. </match>
  90. <match target="font">
  91.         <test name="size" compare="less_eq">
  92.                 <double>16</double>
  93.         </test>
  94.         <test name="size" compare="more_eq">
  95.                 <double>8</double>
  96.         </test>
  97.         <edit name="antialias" mode="assign">
  98.                 <bool>false</bool>
  99.         </edit>
  100. </match>
  101. -->

  102. <!--
  103. Add by [email]firefly@firefly.idv.tw[/email]
  104. Artificial bold for fonts without a bold version.
  105. -->
  106.         <match target="font">
  107.                 <test target="pattern" name="weight" compare="more">
  108.                         <const>medium</const>
  109.                 </test>
  110.                 <edit name="weight" mode="assign">
  111.                         <const>bold</const>
  112.                 </edit>
  113.         </match>

  114. <!--
  115.   Add by Firefly(firefly@firefly.idv.tw)
  116. -->
  117.         <match target="font">
  118.                 <edit name="embeddedbitmap" mod="assign">
  119.                         <bool>true</bool>
  120.                 </edit>
  121.         </match>


  122. <!-- bold substitution, by luo: [email]karllo@mail.nbptt.zj.cn[/email]
  123. -->
  124. <match>
  125.         <test name="family">
  126.                 <string>SimSun</string>
  127.         </test>
  128.         <test name="weight" compare="eq">
  129.                 <const>bold</const>
  130.         </test>
  131.         <edit name="family" mode="assign_replace">
  132.                 <string>SimHei</string>
  133.         </edit>
  134.         <edit name="weight" mode="assign_replace">
  135.                 <const>bold</const>
  136.         </edit>
  137. </match>

  138. <!-- artificial bold by: firefly blod fonts-->
  139.     <match target="font">
  140.        <test name="weight" compare="less_eq">
  141.           <const>medium</const>
  142.        </test>
  143.        <test target="pattern" name="weight" compare="more">
  144.           <const>medium</const>
  145.        </test>
  146.        <edit name="weight" mode="assign">
  147.           <const>bold</const>
  148.        </edit>
  149.     </match>

  150. <!-- artificial bold by: firefly
  151. <match target="font">
  152.         <test target="pattern" name="weight" compare="more">
  153.                 <const>medium</const>
  154.         </test>
  155.         <edit name="weight" mode="assign">
  156.                 <const>bold</const>
  157.         </edit>
  158. </match>-->

  159. <!--
  160.   Add by Firefly(firefly@firefly.idv.tw)
  161.   Most of Asian fonts can't explain by freetype2,
  162.   so,if these fonts have dual width(half/full) and monospacing,
  163.   you need to disable globaladvance.
  164. -->
  165.         <match target="font">
  166.                 <test name="spacing" compare="more_eq">
  167.                         <const>dual</const>
  168.                 </test>
  169.                 <edit name="globaladvance" mode="assign">
  170.                         <bool>false</bool>
  171.                 </edit>
  172.         </match>
  173. <!--
  174. Add by [email]firefly@firefly.idv.tw[/email]
  175. Disable "Global Advance" for all mono spacing fonts.
  176. -->
  177.         <match target="font">
  178.                 <test name="spacing" compare="eq">
  179.                         <const>mono</const>
  180.                 </test>
  181.                 <edit name="globaladvance" mode="assign">
  182.                         <bool>false</bool>
  183.                 </edit>
  184.         </match>

  185. <!--
  186.   The more space of the two fonts
  187. -->
  188.         <match target="font">
  189.                 <test target="pattern" name="lang" compare="contains">
  190.                         <string>zh-tw</string>
  191.                         <string>zh-cn</string>
  192.                         <string>ja</string>
  193.                         <string>ko</string>
  194.                 </test>
  195.                 <edit name="spacing">
  196.                         <const>proportional</const>
  197.                 </edit>
  198.                 <edit name="globaladvance">
  199.                         <bool>false</bool>
  200.                 </edit>
  201.         </match>
  202. <!--
  203.   Add by [email]firefly@firefly.idv.tw[/email]
  204.   hint and hint style
  205. -->
  206.         <match target="font">
  207.                 <test name="lang" compare="contains">
  208.                         <string>zh</string>
  209.                         <string>ja</string>
  210.                         <string>ko</string>
  211.                 </test>
  212.                 <edit name="autohint" mode="assign">
  213.                         <bool>true</bool>
  214.                 </edit>
  215.                 <edit name="hintstyle" mode="assign">
  216.                         <const>hintslight</const>
  217.                 </edit>
  218.                 <edit name="usegamma" mode="assign">
  219.                     <if>
  220.                         <less>
  221.                                 <name>pixelsize</name>
  222.                                 <double>20</double>
  223.                         </less>
  224.                     </if>
  225.                     <bool>true</bool>
  226.                     <bool>false</bool>
  227.                 </edit>
  228.         </match>
  229. <!--
  230.         this can slove the missing english charactors
  231. -->
  232.         <match target="font">
  233.                 <test name="pixelsize" compare="more"><int>7</int></test>
  234.                 <test name="pixelsize" compare="less"><int>19</int></test>
  235.                 <edit name="render" mode="assign"><bool>false</bool></edit>
  236.         </match>
  237. <!--........................................................................-->
  238.         <config>
  239. <!--
  240.   Add by Firefly (firefly@firefly.idv.tw)
  241.   Output non English/Latin family name.
  242. -->
  243.                <other_family>
  244.                        <bool>true</bool>
  245.                </other_family>
  246.         </config>

  247. </fontconfig>
复制代码

fonts.conf系统自代,每次都要复制回来麻烦。
发表于 2004-10-6 20:54:42 | 显示全部楼层
最初由 Hauser 发表
这东西因人而异,显示器和显卡,甚至座位离显示器的距离都会有一点影响,虽然下午在公司的电脑看cocojumbal贴图挺不错,但在我这里如果用cocojumbal的配置,看起来并不舒服,字体太过纤细,英文字体甚至有点“毛虫”的效果。

呵呵,看来还是要和个人的分辨率适合。
这个fonts.conf调成16号的字体就不好看了,我这里也是。
可以试试把fonts.conf里8-17号字体关掉AA改成8-16或再小些。
发表于 2004-10-6 22:08:27 | 显示全部楼层
最初由 cocojumbal 发表
呵呵,看来还是要和个人的分辨率适合。
这个fonts.conf调成16号的字体就不好看了,我这里也是。
可以试试把fonts.conf里8-17号字体关掉AA改成8-16或再小些。

在我这儿得改至8-10 (因为我的界面字体用11号)才行。嗯,又试了下你的配置,结果出来的效果跟用我自己的配置差不多。

当然由于字体的优先次序有所不同,看某些网页的时候会有字体不一样的情况。
您需要登录后才可以回帖 登录 | 注册

本版积分规则

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