LinuxSir.cn,穿越时空的Linuxsir!

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

为什么有的英文粗体那么丑?

[复制链接]
发表于 2006-6-22 10:46:07 | 显示全部楼层 |阅读模式
这个好像是SimSun的英文,正常状态下显示也不错。可是一旦用粗休就不行了,好像破碎了。libXft已经打过sunmoon兄弟的补丁。
fonts.conf
  1. <?xml version="1.0"?>
  2. <!DOCTYPE fontconfig SYSTEM "fonts.dtd">
  3. <!-- /etc/fonts/fonts.conf file to configure system font access -->
  4. <fontconfig>

  5. <!--
  6.         DO NOT EDIT THIS FILE.
  7.         IT WILL BE REPLACED WHEN FONTCONFIG IS UPDATED.
  8.         LOCAL CHANGES BELONG IN 'local.conf'.

  9.         The intent of this standard configuration file is to be adequate for
  10.         most environments.  If you have a reasonably normal environment and
  11.         have found problems with this configuration, they are probably
  12.         things that others will also want fixed.  Please submit any
  13.         problems to the fontconfig bugzilla system located at fontconfig.org

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

  17.         Keith Packard
  18. -->

  19. <!-- Font directory list -->

  20.         <dir>/usr/share/fonts</dir>
  21.         <dir>/usr/X11R6/lib/X11/fonts</dir>
  22.         <dir>~/.fonts</dir>

  23. <!--
  24.   Accept deprecated 'mono' alias, replacing it with 'monospace'
  25. -->
  26.         <match target="pattern">
  27.                 <test qual="any" name="family">
  28.                         <string>mono</string>
  29.                 </test>
  30.                 <edit name="family" mode="assign">
  31.                         <string>monospace</string>
  32.                 </edit>
  33.         </match>

  34. <!--
  35.   Accept alternate 'sans serif' spelling, replacing it with 'sans-serif'
  36. -->
  37.         <match target="pattern">
  38.                 <test qual="any" name="family">
  39.                         <string>sans serif</string>
  40.                 </test>
  41.                 <edit name="family" mode="assign">
  42.                         <string>sans-serif</string>
  43.                 </edit>
  44.         </match>

  45. <!--
  46.   Accept deprecated 'sans' alias, replacing it with 'sans-serif'
  47. -->
  48.         <match target="pattern">
  49.                 <test qual="any" name="family">
  50.                         <string>sans</string>
  51.                 </test>
  52.                 <edit name="family" mode="assign">
  53.                         <string>sans-serif</string>
  54.                 </edit>
  55.         </match>

  56. <!--
  57.   Mark common families with their generics so we'll get
  58.   something reasonable
  59. -->

  60. <!--
  61.   Serif faces
  62. -->
  63.         <alias>
  64.                 <family>Bitstream Vera Serif</family>
  65.                 <family>Times New Roman</family>
  66.                 <family>Thorndale AMT</family>
  67.                 <family>Times</family>
  68.                 <family>Nimbus Roman No9 L</family>
  69.                 <family>Luxi Serif</family>
  70.                 <family>Kochi Mincho</family>
  71.                 <family>AR PL SungtiL GB</family>
  72.                 <family>AR PL Mingti2L Big5</family>
  73.                 <family>锛�锛� 鏄庢湞</family>
  74.                 <family>Baekmuk Batang</family>
  75.                 <family>FreeSerif</family>
  76.                 <family>MgOpen Canonica</family>
  77.                 <default><family>serif</family></default>
  78.         </alias>
  79. <!--
  80.   Sans-serif faces
  81. -->
  82.         <alias>
  83.                 <family>Tahoma</family>
  84.                 <family>Bitstream Vera Sans</family>
  85.                 <family>Helvetica</family>
  86.                 <family>Arial</family>
  87.                 <family>Verdana</family>
  88.                 <family>Albany AMT</family>
  89.                 <family>Nimbus Sans L</family>
  90.                 <family>Luxi Sans</family>
  91.                 <family>Kochi Gothic</family>
  92.                 <family>AR PL KaitiM GB</family>
  93.                 <family>AR PL KaitiM Big5</family>
  94.                 <family>锛�锛� 銈淬偡銉冦偗</family>
  95.                 <family>Baekmuk Dotum</family>
  96.                 <family>SimSun</family>
  97.                 <family>FreeSans</family>
  98.                 <family>MgOpen Modata</family>
  99.                 <default><family>sans-serif</family></default>
  100.         </alias>
  101. <!--
  102.   Monospace faces
  103. -->
  104.         <alias>
  105.                 <family>Bitstream Vera Sans Mono</family>
  106.                 <family>Courier</family>
  107.                 <family>Courier New</family>
  108.                 <family>Andale Mono</family>
  109.                 <family>Luxi Mono</family>
  110.                 <family>Cumberland AMT</family>
  111.                 <family>Nimbus Mono L</family>
  112.                 <family>NSimSun</family>
  113.                 <family>FreeMono</family>
  114.                 <default><family>monospace</family></default>
  115.         </alias>
  116. <!--
  117.   If the font still has no generic name, add sans-serif
  118. -->
  119.         <match target="pattern">
  120.                 <test qual="all" name="family" compare="not_eq">
  121.                         <string>sans-serif</string>
  122.                 </test>
  123.                 <test qual="all" name="family" compare="not_eq">
  124.                         <string>serif</string>
  125.                 </test>
  126.                 <test qual="all" name="family" compare="not_eq">
  127.                         <string>monospace</string>
  128.                 </test>
  129.                 <edit name="family" mode="append_last">
  130.                         <string>sans-serif</string>
  131.                 </edit>
  132.         </match>

  133. <!--
  134.   URW provides metric and shape compatible fonts for these 3 Adobe families.
  135.   -->
  136.         <alias>
  137.           <family>Times</family>
  138.           <accept><family>Nimbus Roman No9 L</family></accept>
  139.         </alias>
  140.         <alias>
  141.           <family>Helvetica</family>
  142.           <accept><family>Nimbus Sans L</family></accept>
  143.         </alias>
  144.         <alias>
  145.           <family>Courier</family>
  146.           <accept><family>Nimbus Mono L</family></accept>
  147.         </alias>

  148. <!--
  149. AMT provides metric and shape compatible fonts for these three web font
  150. families.
  151. -->
  152.         <alias>
  153.                 <family>Times New Roman</family>
  154.                 <accept><family>Thorndale AMT</family></accept>
  155.         </alias>
  156.         <alias>
  157.                 <family>Arial</family>
  158.                 <accept><family>Albany AMT</family></accept>
  159.         </alias>
  160.         <alias>
  161.                 <family>Courier New</family>
  162.                 <accept><family>Cumberland AMT</family></accept>
  163.         </alias>

  164. <!--
  165.   Some Asian fonts misadvertise themselves as monospaced when
  166.   in fact they are dual-spaced (half and full).  This makes
  167.   FreeType very confused as it forces all widths to match.
  168.   Undo this magic by disabling the width forcing code -->
  169.         <match target="font">
  170.                 <test name="family"><string>GulimChe</string></test>
  171.                 <edit name="globaladvance"><bool>false</bool></edit>
  172.         </match>

  173.         <match target="font">
  174.                 <test name="family"><string>DotumChe</string></test>
  175.                 <edit name="globaladvance"><bool>false</bool></edit>
  176.         </match>

  177.         <match target="font">
  178.                 <test name="family"><string>BatangChe</string></test>
  179.                 <edit name="globaladvance"><bool>false</bool></edit>
  180.         </match>

  181.         <match target="font">
  182.                 <test name="family"><string>GungsuhChe</string></test>
  183.                 <edit name="globaladvance"><bool>false</bool></edit>
  184.         </match>

  185. <!--
  186.         The Bitstream Vera fonts have GASP entries suggesting that hinting be
  187.         disabled below 8 ppem, but FreeType ignores those, preferring to use
  188.         the data found in the instructed hints.  The initial Vera release
  189.         didn't include the right instructions in the 'prep' table. Fix this
  190.         by disabling hinting manually at smaller sizes (< 8ppem)
  191. -->

  192.         <match target="font">
  193.                 <test name="family">
  194.                         <string>Bitstream Vera Sans</string>
  195.                 </test>
  196.                 <test name="pixelsize" compare="less">
  197.                         <double>7.5</double>
  198.                 </test>
  199.                 <edit name="hinting">
  200.                         <bool>false</bool>
  201.                 </edit>
  202.         </match>

  203.         <match target="font">
  204.                 <test name="family">
  205.                         <string>Bitstream Vera Serif</string>
  206.                 </test>
  207.                 <test name="pixelsize" compare="less">
  208.                         <double>7.5</double>
  209.                 </test>
  210.                 <edit name="hinting">
  211.                         <bool>false</bool>
  212.                 </edit>
  213.         </match>

  214.         <match target="font">
  215.                 <test name="family">
  216.                         <string>Bitstream Vera Sans Mono</string>
  217.                 </test>
  218.                 <test name="pixelsize" compare="less">
  219.                         <double>7.5</double>
  220.                 </test>
  221.                 <edit name="hinting">
  222.                         <bool>false</bool>
  223.                 </edit>
  224.         </match>

  225. <!--
  226.   Load per-user customization file
  227. -->
  228.         <include ignore_missing="yes">~/.fonts.conf</include>

  229. <!--
  230.   Load local system customization file
  231. -->
  232.         <include ignore_missing="yes">conf.d</include>
  233.         <include ignore_missing="yes">local.conf</include>

  234. <!--
  235.   Provide required aliases for standard names
  236. -->
  237.         <alias>
  238.                 <family>serif</family>
  239.                 <prefer>
  240.                         <family>Bitstream Vera Serif</family>
  241.                         <family>Times New Roman</family>
  242.                         <family>Thorndale AMT</family>
  243.                         <family>Luxi Serif</family>
  244.                         <family>Nimbus Roman No9 L</family>
  245.                         <family>Times</family>
  246.                         <family>Frank Ruehl</family>
  247.                         <family>MgOpen Canonica</family>
  248.                         <family>FreeSerif</family>
  249.                         <family>SimSun</family>
  250.                         <family>SimSun-18030</family>
  251.                         <family>Kochi Mincho</family>
  252.                         <family>AR PL SungtiL GB</family>
  253.                         <family>AR PL Mingti2L Big5</family>
  254.                         <family>锛�锛� 鏄庢湞</family>
  255.                         <family>Baekmuk Batang</family>
  256.                 </prefer>
  257.         </alias>
  258.         <alias>
  259.                 <family>sans-serif</family>
  260.                 <prefer>
  261.                         <family>Tahoma</family>
  262.                         <family>Bitstream Vera Sans</family>
  263.                         <family>Verdana</family>
  264.                         <family>Arial</family>
  265.                         <family>Albany AMT</family>
  266.                         <family>Luxi Sans</family>
  267.                         <family>Nimbus Sans L</family>
  268.                         <family>Helvetica</family>
  269.                         <family>Nachlieli</family>
  270.                         <family>MgOpen Modata</family>
  271.                         <family>FreeSans</family>
  272.                         <family>SimSun</family>
  273.                         <family>SimSun-18030</family>
  274.                         <family>Kochi Gothic</family>
  275.                         <family>AR PL KaitiM GB</family>
  276.                         <family>AR PL KaitiM Big5</family>
  277.                         <family>锛�锛� 銈淬偡銉冦偗</family>
  278.                         <family>Baekmuk Dotum</family>
  279.                 </prefer>
  280.         </alias>
  281.         <alias>
  282.                 <family>monospace</family>
  283.                 <prefer>
  284.                         <family>Bitstream Vera Sans Mono</family>
  285.                         <family>Andale Mono</family>
  286.                         <family>Courier New</family>
  287.                         <family>Cumberland AMT</family>
  288.                         <family>Luxi Mono</family>
  289.                         <family>Nimbus Mono L</family>
  290.                         <family>Courier</family>
  291.                         <family>Miriam Mono</family>
  292.                         <family>FreeMono</family>
  293.                         <family>NSimSun</family>
  294.                         <family>NSimSun-18030</family>
  295.                         <family>Kochi Gothic</family>
  296.                         <family>AR PL KaitiM GB</family>
  297.                         <family>Baekmuk Dotum</family>
  298.                 </prefer>
  299.         </alias>

  300. <!--
  301. Artificial oblique for fonts without an italic or oblique version
  302. -->

  303.         <match target="font">
  304.                 <!-- check to see if the font is roman -->
  305.                 <test name="slant">
  306.                         <const>roman</const>
  307.                 </test>
  308.                 <!-- check to see if the pattern requested non-roman -->
  309.                 <test target="pattern" name="slant" compare="not_eq">
  310.                         <const>roman</const>
  311.                 </test>
  312.                 <!-- multiply the matrix to slant the font -->
  313.                 <edit name="matrix" mode="assign">
  314.                         <times>
  315.                                 <name>matrix</name>
  316.                                 <matrix><double>1</double><double>0.2</double>
  317.                                         <double>0</double><double>1</double>
  318.                                 </matrix>
  319.                         </times>
  320.                 </edit>
  321.                 <!-- pretend the font is oblique now -->
  322.                 <edit name="slant" mode="assign">
  323.                         <const>oblique</const>
  324.                 </edit>
  325.                 <edit name="antialias" mode="assign">
  326.                         <bool>flase</bool>
  327.                 </edit>
  328.                 <!-- please don't load embedded bitmap -->
  329.                 <!--
  330.                 <edit name="embeddedbitmap" mode="assign">
  331.                         <bool>false</bool>
  332.                 </edit>
  333.                 -->
  334.         </match>

  335. <!--
  336. Synthetic emboldening for fonts that do not have bold face available
  337. -->

  338.         <match target="font">
  339.                 <!-- check to see if the font is just regular -->
  340.                 <test name="weight" compare="less_eq">
  341.                         <const>medium</const>
  342.                 </test>
  343.                 <!-- check to see if the pattern requests bold -->
  344.                 <test target="pattern" name="weight" compare="more">
  345.                         <const>medium</const>
  346.                 </test>
  347.                 <!--
  348.                   set the embolden flag
  349.                   needed for applications using cairo, e.g. gucharmap, gedit, .. .
  350.                 -->
  351.                 <edit name="embolden" mode="assign">
  352.                         <bool>true</bool>
  353.                 </edit>
  354.                 <!--
  355.                  set weight to bold
  356.                  needed for applications using Xft directly, e.g. Firefox, ...
  357.                 -->
  358.                 <edit name="weight" mode="assign">
  359.                         <const>bold</const>
  360.                 </edit>
  361.         </match>


  362.         <config>
  363. <!--
  364.   These are the default Unicode chars that are expected to be blank
  365.   in fonts.  All other blank chars are assumed to be broken and
  366.   won't appear in the resulting charsets
  367. -->
  368.                 <blank>
  369.                         <int>0x0020</int>       <!-- SPACE -->
  370.                         <int>0x00A0</int>       <!-- NO-BREAK SPACE -->
  371.                         <int>0x00AD</int>       <!-- SOFT HYPHEN -->
  372.                         <int>0x034F</int>       <!-- COMBINING GRAPHEME JOINER - ->
  373.                         <int>0x0600</int>       <!-- ARABIC NUMBER SIGN -->
  374.                         <int>0x0601</int>       <!-- ARABIC SIGN SANAH -->
  375.                         <int>0x0602</int>       <!-- ARABIC FOOTNOTE MARKER -->
  376.                         <int>0x0603</int>       <!-- ARABIC SIGN SAFHA -->
  377.                         <int>0x06DD</int>       <!-- ARABIC END OF AYAH -->
  378.                         <int>0x070F</int>       <!-- SYRIAC ABBREVIATION MARK -- >
  379.                         <int>0x115F</int>       <!-- HANGUL CHOSEONG FILLER -->
  380.                         <int>0x1160</int>       <!-- HANGUL JUNGSEONG FILLER -->
  381.                         <int>0x1680</int>       <!-- OGHAM SPACE MARK -->
  382.                         <int>0x17B4</int>       <!-- KHMER VOWEL INHERENT AQ -->
  383.                         <int>0x17B5</int>       <!-- KHMER VOWEL INHERENT AA -->
  384.                         <int>0x180E</int>       <!-- MONGOLIAN VOWEL SEPARATOR - ->
  385.                         <int>0x2000</int>       <!-- EN QUAD -->
  386.                         <int>0x2001</int>       <!-- EM QUAD -->
  387.                         <int>0x2002</int>       <!-- EN SPACE -->
  388.                         <int>0x2003</int>       <!-- EM SPACE -->
  389.                         <int>0x2004</int>       <!-- THREE-PER-EM SPACE -->
  390.                         <int>0x2005</int>       <!-- FOUR-PER-EM SPACE -->
  391.                         <int>0x2006</int>       <!-- SIX-PER-EM SPACE -->
  392.                         <int>0x2007</int>       <!-- FIGURE SPACE -->
  393.                         <int>0x2008</int>       <!-- PUNCTUATION SPACE -->
  394.                         <int>0x2009</int>       <!-- THIN SPACE -->
  395.                         <int>0x200A</int>       <!-- HAIR SPACE -->
  396.                         <int>0x200B</int>       <!-- ZERO WIDTH SPACE -->
  397.                         <int>0x200C</int>       <!-- ZERO WIDTH NON-JOINER -->
  398.                         <int>0x200D</int>       <!-- ZERO WIDTH JOINER -->
  399.                         <int>0x200E</int>       <!-- LEFT-TO-RIGHT MARK -->
  400.                         <int>0x200F</int>       <!-- RIGHT-TO-LEFT MARK -->
  401.                         <int>0x2028</int>       <!-- LINE SEPARATOR -->
  402.                         <int>0x2029</int>       <!-- PARAGRAPH SEPARATOR -->
  403.                         <int>0x202A</int>       <!-- LEFT-TO-RIGHT EMBEDDING -->
  404.                         <int>0x202B</int>       <!-- RIGHT-TO-LEFT EMBEDDING -->
  405.                         <int>0x202C</int>       <!-- POP DIRECTIONAL FORMATTING -->
  406.                         <int>0x202D</int>       <!-- LEFT-TO-RIGHT OVERRIDE -->
  407.                         <int>0x202E</int>       <!-- RIGHT-TO-LEFT OVERRIDE -->
  408.                         <int>0x202F</int>       <!-- NARROW NO-BREAK SPACE -->
  409.                         <int>0x205F</int>       <!-- MEDIUM MATHEMATICAL SPACE - ->
  410.                         <int>0x2060</int>       <!-- WORD JOINER -->
  411.                         <int>0x2061</int>       <!-- FUNCTION APPLICATION -->
  412.                         <int>0x2062</int>       <!-- INVISIBLE TIMES -->
  413.                         <int>0x2063</int>       <!-- INVISIBLE SEPARATOR -->
  414.                         <int>0x206A</int>       <!-- INHIBIT SYMMETRIC SWAPPING -->
  415.                         <int>0x206B</int>       <!-- ACTIVATE SYMMETRIC SWAPPING  -->
  416.                         <int>0x206C</int>       <!-- INHIBIT ARABIC FORM SHAPING  -->
  417.                         <int>0x206D</int>       <!-- ACTIVATE ARABIC FORM SHAPIN G -->
  418.                         <int>0x206E</int>       <!-- NATIONAL DIGIT SHAPES -->
  419.                         <int>0x206F</int>       <!-- NOMINAL DIGIT SHAPES -->
  420.                         <int>0x3000</int>       <!-- IDEOGRAPHIC SPACE -->
  421.                         <int>0x3164</int>       <!-- HANGUL FILLER -->
  422.                         <int>0xFEFF</int>       <!-- ZERO WIDTH NO-BREAK SPACE - ->
  423.                         <int>0xFFA0</int>       <!-- HALFWIDTH HANGUL FILLER -->
  424.                         <int>0xFFF9</int>       <!-- INTERLINEAR ANNOTATION ANCH OR -->
  425.                         <int>0xFFFA</int>       <!-- INTERLINEAR ANNOTATION SEPA RATOR -->
  426.                         <int>0xFFFB</int>       <!-- INTERLINEAR ANNOTATION TERM INATOR -->
  427.                 </blank>
  428. <!--
  429.   Rescan configuration every 30 seconds when FcFontSetList is called
  430. -->
  431.                 <rescan>
  432.                         <int>30</int>
  433.                 </rescan>
  434.         </config>

  435. </fontconfig>
复制代码


local.conf
  1. <?xml version="1.0"?>
  2. <!DOCTYPE fontconfig SYSTEM "fonts.dtd">
  3. <!-- conf.d/10-myfonts -->
  4. <fontconfig>
  5. <dir>/usr/share/fonts</dir>
  6. <dir>/usr/local/share/fonts</dir>
  7. <dir>~/.fonts</dir>
  8. <!--鍔犲叆鐐归樀瀛椾綋璺�寰�-->
  9. <dir>/usr/X11R6/lib/X11/fonts</dir>

  10.         <!--
  11.           Enable sub-pixel rendering
  12.         -->
  13.         <match target="font">
  14.                 <test qual="all" name="rgba">
  15.                         <const>unknown</const>
  16.                 </test>
  17.                 <edit name="rgba" mode="assign">
  18.                         <const>rgb</const>
  19.                 </edit>
  20.         </match>

  21. <!--
  22. 閰嶇疆绮椾綋涓�鏂囨樉绀�,瑕侀厤鍚坒reetype-2.1.10,libxft-2.1.7,fontconfig-2.3.X
  23.   -->

  24.      <match target="font">
  25.          <!-- check to see if the font is just regular -->
  26.          <test name="weight" compare="less_eq">
  27.              <int>100</int>
  28.          </test>
  29.          <!-- check to see if the pattern requests bold -->
  30.          <test target="pattern" name="weight" compare="more_eq">
  31.              <int>180</int>
  32.          </test>
  33.          <!-- set the embolden flag -->
  34.          <edit name="embolden" mode="assign">
  35.              <bool>true</bool>
  36.          </edit>
  37.      </match>

  38. <!--
  39.         default settings for all fonts.
  40. -->
  41. <match target="font" >
  42. <!-- 鎵撳紑瀛椾綋鐨勫弽閿�榻垮嵆AA,澶у彿瀛楃敤AA浼氭洿缇庤��   -->
  43.                 <edit mode="assign" name="antialias" >
  44.                         <bool>t</bool>
  45.                 </edit>
  46.                 <edit mode="assign" name="hintstyle" >
  47.                         <const>hintslight</const>
  48.                 </edit>
  49. <!-- 鎵撳紑hint  -->
  50.                 <edit mode="assign" name="hinting" >
  51.                         <bool>t</bool>
  52.                 </edit>
  53. <!-- 鍏抽棴autohint  -->
  54.                 <edit mode="assign" name="autohint" >
  55.                         <bool>false</bool>
  56.                 </edit>
  57. </match>


  58. <!-- 鍏抽棴 8鍒�17鍙峰瓧浣撶殑AA -->
  59. <match target="font" >
  60.                 <!--
  61.                 <test compare="contains" name="lang" >
  62.                         <string>zh-cn</string>
  63.                         <string>zh-tw</string>
  64.                         <string>ja</string>
  65.                         <string>ko</string>
  66.                 </test>
  67.                 -->
  68.                 <test compare="more_eq" name="pixelsize" qual="any" >
  69.                         <double>8</double>
  70.                 </test>
  71.                 <test compare="less_eq" name="pixelsize" qual="any" >
  72.                         <double>17</double>
  73.                 </test>
  74.                 <edit mode="assign" name="antialias" >
  75.                         <bool>false</bool>
  76.                 </edit>
  77. </match>

  78. <match target="font" >
  79.                 <!--
  80.                 <test compare="contains" name="lang" >
  81.                         <string>zh-cn</string>
  82.                         <string>zh-tw</string>
  83.                         <string>ja</string>
  84.                         <string>ko</string>
  85.                 </test>
  86.                 -->
  87.                 <test compare="more_eq" name="size" qual="any" >
  88.                         <double>8</double>
  89.                 </test>
  90.                 <test compare="less_eq" name="size" qual="any" >
  91.                         <double>17</double>
  92.                 </test>
  93.                 <edit mode="assign" name="antialias" >
  94.                         <bool>false</bool>
  95.                 </edit>
  96. </match>

  97. <!-- 瑙e喅鑻辨枃瀛椾綋闂磋窛杩囧�� -->
  98. <match target="font">

  99.                 <test target="pattern" name="lang" compare="contains">
  100.                         <string>zh-tw</string>
  101.                         <string>zh-cn</string>
  102.                         <string>ja</string>
  103.                         <string>ko</string>
  104.                 </test>
  105.                 <edit name="spacing">
  106.                         <const>proportional</const>
  107.                 </edit>
  108.                 <edit name="globaladvance">
  109.                         <bool>false</bool>
  110.                 </edit>
  111. </match>

  112. <!--
  113.           Add by firefly@firefly.idv.tw
  114.         -->
  115.         <match target="font" >
  116.                 <test compare="contains" name="lang" >
  117.                         <string>zh-cn</string>
  118.                         <string>zh-tw</string>
  119.                         <string>ja</string>
  120.                         <string>ko</string>
  121.                 </test>
  122.                 <edit mode="assign" name="hint" >
  123.                         <bool>true</bool>
  124.                 </edit>
  125.                 <edit mode="assign" name="autohint" >
  126.                         <bool>false</bool>
  127.                 </edit>
  128.                 <edit mode="assign" name="hintstyle" >
  129.                         <const>hintslight</const>
  130.                 </edit>
  131.                 <edit mode="assign" name="usegamma" >
  132.                         <if>
  133.                                 <less>
  134.                                         <name>pixelsize</name>
  135.                                         <double>20</double>
  136.                                 </less>
  137.                         </if>
  138.                         <bool>false</bool>
  139.                 </edit>
  140.         </match>

  141. <!--
  142. 璁惧畾涓�鏂囨渶灏忓瓧鍙�,浣垮緱灏忓瓧鐨勪腑鏂囩編瑙
  143. -->
  144.   <match target="font" >
  145.         <test name="family" qual="any" >
  146.                 <string>SimSun</string>
  147.                 <string>NSimSun</string>
  148.                 <string>SimHei</string>
  149.                 <string>AR PL ShanHeiSun Uni</string>
  150.                 <string>AR PL ZenKai Uni</string>
  151.                 <string>AR PL New Sung</string>
  152.                 <string>FZSongTi</string>
  153.                 <string>FZMingTiB</string>
  154.                 <string>FangSong_GB2312</string>
  155.                 <string>KaiTi_GB2312</string>
  156.         </test>
  157.         <test compare="more_eq" name="pixelsize" >
  158.                 <int>8</int>
  159.         </test>
  160.         <test compare="less_eq" name="pixelsize" >
  161.                 <int>12</int>
  162.         </test>
  163.         <edit compare="eq" name="pixelsize" >
  164.                 <int>12</int>
  165.         </edit>
  166. </match>
  167. <!--
  168.   鎶妔erif ,sans,monospace鐨刦amily(瀛椾綋鏃噸鏂版帓搴�傚簲涓�鏂囩敤鎴风殑鐢ㄥ瓧涔犳儻
  169. -->
  170.    <alias>
  171.       <family>serif</family>
  172.       <prefer>
  173.          <family>Times New Roman</family>
  174.          <family>Nimbus Roman No9 L</family>
  175.          <family>Luxi Serif</family>
  176.          <family>Times</family>
  177.          <family>Bitstream Vera Serif</family>
  178.          <family>Simsun</family>
  179.          <family>MingLiu</family>
  180.          <family>WenQuanYi Bitmap Song</family>
  181.          <family>AR PL ShanHeiSun Uni</family>
  182.          <family>AR PL ZenKai Uni</family>
  183.          <family>AR PL New Sung</family>
  184.          <family>FZSongTi</family>
  185.          <family>FZMingTiB</family>
  186.          <family>Kochi Mincho</family>
  187.          <family>AR PL SungtiL GB</family>
  188.          <family>AR PL Mingti2L Big5</family>
  189.          <family>Baekmuk Batang</family>
  190.       </prefer>
  191.    </alias>
  192.    <alias>
  193.       <family>sans-serif</family>
  194.       <prefer>
  195.          <family>Tahoma</family>
  196.          <family>Arial</family>
  197.          <family>Verdana</family>
  198.          <family>Helvetica</family>
  199.          <family>Bitstream Vera Sans</family>
  200.          <family>SimSun</family>
  201.          <family>MingLiu</family>
  202.          <family>WenQuanYi Bitmap Song</family>
  203.          <family>AR PL ShanHeiSun Uni</family>
  204.          <family>AR PL ZenKai Uni</family>
  205.          <family>AR PL New Sung</family>
  206.          <family>FZSongTi</family>
  207.          <family>FZMingTiB</family>
  208.          <family>Kochi Gothic</family>
  209.          <family>AR PL KaitiM GB</family>
  210.          <family>AR PL KaitiM Big5</family>
  211.          <family>Baekmuk Dotum</family>

  212.       </prefer>
  213.    </alias>
  214.    <alias>
  215.       <family>monospace</family>
  216.       <prefer>
  217.          <family>Courier New</family>
  218.          <family>Courier</family>
  219.          <family>Andale Mono</family>
  220.          <family>Luxi Mono</family>
  221.          <family>Nimbus Mono L</family>
  222.          <family>Bitstream Vera Sans Mono</family>
  223.          <family>NSimSun</family>
  224.          <family>PMingLiu</family>
  225.          <family>WenQuanYi Bitmap Song</family>
  226.          <family>AR PL ShanHeiSun Uni</family>
  227.          <family>AR PL ZenKai Uni</family>
  228.          <family>AR PL New Sung</family>
  229.          <family>FZSongTi</family>
  230.          <family>FZMingTiB</family>
  231.          <family>Kochi Gothic</family>
  232.          <family>AR PL KaitiM GB</family>
  233.          <family>Baekmuk Dotum</family>
  234.       </prefer>
  235.    </alias>

  236. </fontconfig>
复制代码

本帖子中包含更多资源

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

x
发表于 2006-6-22 11:01:59 | 显示全部楼层
用别的字体替换
简单的做法,在firefox里字体指定英文字体,比如verdana,
这个字体可以直接emerge
emerge corefonts
回复 支持 反对

使用道具 举报

发表于 2006-6-22 12:55:33 | 显示全部楼层
我给粗体字都开AA了,有所改善。
回复 支持 反对

使用道具 举报

 楼主| 发表于 2006-6-22 13:29:23 | 显示全部楼层
现在firefox里的默认字体就是tahoma。。然后设置是允许使用页面自己定义的字体。。
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

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