LinuxSir.cn,穿越时空的Linuxsir!

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

求cario中文粗体补丁以及相应的font.conf配置文件

[复制链接]
发表于 2006-3-25 22:55:43 | 显示全部楼层 |阅读模式
我的kde现在已经可以正常显示中文粗体(附图一),可是firefox的中文无法显示粗体(附图二)。
我的font.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 configured on  -->
  20.         <dir>/usr/share/fonts</dir>
  21.         <dir>~/.fonts</dir>

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

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

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

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

  59. <!--
  60.   Serif faces
  61. -->
  62.         <alias>
  63.                 <family>Bitstream Vera Serif</family>
  64.                 <family>Times</family>
  65.                 <family>Times New Roman</family>
  66.                 <family>Nimbus Roman No9 L</family>
  67.                 <family>Luxi Serif</family>
  68.                  <family>SimSun</family>
  69.                 <family>Kochi Mincho</family>
  70.                 <family>AR PL SungtiL GB</family>
  71.                 <family>AR PL Mingti2L Big5</family>
  72.                 <family>Baekmuk Batang</family>                       
  73.                 <default><family>serif</family></default>
  74.         </alias>
  75. <!--
  76.   Sans-serif faces
  77. -->
  78.         <alias>
  79.                 <family>Bitstream Vera Sans</family>
  80.                 <family>Helvetica</family>
  81.                 <family>Arial</family>
  82.                 <family>Verdana</family>
  83.                 <family>Nimbus Sans L</family>
  84.                 <family>Luxi Sans</family>
  85.                  <family>SimSun</family>
  86.                 <family>Kochi Gothic</family>
  87.                 <family>AR PL KaitiM GB</family>
  88.                 <family>AR PL KaitiM Big5</family>
  89.                 <family>Baekmuk Dotum</family>
  90.                 <default><family>sans-serif</family></default>
  91.         </alias>
  92. <!--
  93.   Monospace faces
  94. -->
  95.         <alias>
  96.                 <family>Bitstream Vera Sans Mono</family>
  97.                 <family>Courier</family>
  98.                 <family>Courier New</family>
  99.                 <family>Andale Mono</family>
  100.                 <family>Luxi Mono</family>
  101.                 <family>Nimbus Mono L</family>
  102.                 <family>NSimSun</family>
  103.                 <default><family>monospace</family></default>
  104.         </alias>
  105. <!--
  106.   If the font still has no generic name, add sans-serif
  107. -->
  108.         <match target="pattern">
  109.                 <test qual="all" name="family" compare="not_eq">
  110.                         <string>sans-serif</string>
  111.                 </test>
  112.                 <test qual="all" name="family" compare="not_eq">
  113.                         <string>serif</string>
  114.                 </test>
  115.                 <test qual="all" name="family" compare="not_eq">
  116.                         <string>monospace</string>
  117.                 </test>
  118.                 <edit name="family" mode="append_last">
  119.                         <string>sans-serif</string>
  120.                 </edit>
  121.         </match>
  122.        
  123. <!--
  124.   Some Asian fonts misadvertise themselves as monospaced when
  125.   in fact they are dual-spaced (half and full).  This makes
  126.   FreeType very confused as it forces all widths to match.
  127.   Undo this magic by disabling the width forcing code -->
  128.         <!--
  129.         <match target="font">
  130.                 <test name="family">
  131.                         <string>GulimChe</string>
  132.                 </test>
  133.                 <edit name="globaladvance">
  134.                         <bool>false</bool>
  135.                 </edit>
  136.         </match>
  137.        
  138.         <match target="font">
  139.                 <test name="family">
  140.                         <string>DotumChe</string>
  141.                 </test>
  142.                 <edit name="globaladvance">
  143.                         <bool>false</bool>
  144.                 </edit>
  145.         </match>

  146.         <match target="font">
  147.                 <test name="family">
  148.                         <string>BatangChe</string>
  149.                 </test>
  150.                 <edit name="globaladvance">
  151.                         <bool>false</bool>
  152.                 </edit>
  153.         </match>

  154.         <match target="font">
  155.                 <test name="family">
  156.                         <string>GungsuhChe</string>
  157.                 </test>
  158.                 <edit name="globaladvance">
  159.                         <bool>false</bool>
  160.                 </edit>
  161.         </match>
  162.         <match target="font">
  163.                 <test name="family">
  164.                         <string>YouYuan</string>
  165.                 </test>
  166.                 <edit name="globaladvance">
  167.                         <bool>false</bool>
  168.                 </edit>
  169.         </match>
  170.         <match target="font">
  171.                 <test name="family">
  172.                         <string>NSimSun</string>
  173.                 </test>
  174.                 <edit name="globaladvance">
  175.                         <bool>false</bool>
  176.                 </edit>
  177.         </match>
  178.         <match target="font">
  179.                 <test name="family">
  180.                         <string>LiSu</string>
  181.                 </test>
  182.                 <edit name="globaladvance">
  183.                         <bool>false</bool>
  184.                 </edit>
  185.         </match>
  186.         -->
  187. <!--
  188.         The Bitstream Vera fonts have GASP entries suggesting that hinting be
  189.         disabled below 8 ppem, but FreeType ignores those, preferring to use
  190.         the data found in the instructed hints.  The initial Vera release
  191.         didn't include the right instructions in the 'prep' table. Fix this
  192.         by disabling hinting manually at smaller sizes (< 8ppem)
  193. -->
  194.        
  195.         <match target="font">
  196.                 <test name="family">
  197.                         <string>Bitstream Vera Sans</string>
  198.                 </test>
  199.                 <test name="pixelsize" compare="less">
  200.                         <double>7.5</double>
  201.                 </test>
  202.                 <edit name="hinting">
  203.                         <bool>false</bool>
  204.                 </edit>
  205.         </match>
  206.        
  207.         <match target="font">
  208.                 <test name="family">
  209.                         <string>Bitstream Vera Serif</string>
  210.                 </test>
  211.                 <test name="pixelsize" compare="less">
  212.                         <double>7.5</double>
  213.                 </test>
  214.                 <edit name="hinting">
  215.                         <bool>false</bool>
  216.                 </edit>
  217.         </match>
  218.        
  219.         <match target="font">
  220.                 <test name="family">
  221.                         <string>Bitstream Vera Sans Mono</string>
  222.                 </test>
  223.                 <test name="pixelsize" compare="less">
  224.                         <double>7.5</double>
  225.                 </test>
  226.                 <edit name="hinting">
  227.                         <bool>false</bool>
  228.                 </edit>
  229.         </match>
  230.        
  231. <!--
  232.   Load per-user customization file
  233. -->
  234.         <include ignore_missing="yes">~/.fonts.conf</include>

  235. <!--
  236.   Load local system customization file
  237. -->
  238.         <include ignore_missing="yes">local.conf</include>

  239. <!--
  240.   Alias well known font names to available TrueType fonts
  241. -->
  242.         <alias>
  243.                 <family>Times</family>
  244.                 <accept><family>Times New Roman</family></accept>
  245.         </alias>
  246.         <alias>
  247.                 <family>Helvetica</family>
  248.                 <accept><family>Verdana</family></accept>
  249.         </alias>
  250.         <alias>
  251.                 <family>Arial</family>
  252.                 <accept><family>Verdana</family></accept>
  253.         </alias>
  254.         <alias>
  255.                 <family>Courier</family>
  256.                 <accept><family>Courier New</family></accept>
  257.         </alias>

  258. <!--
  259. Check user preference to avoid bitmap fonts and replace
  260. bitmap face names with equivalent scalable fonts
  261. -->

  262.         <match target="pattern">
  263.                 <test name="prefer_outline">
  264.                         <bool>true</bool>
  265.                 </test>
  266.                 <test name="family">
  267.                         <string>Helvetica</string>
  268.                 </test>
  269.                 <edit name="family" mode="prepend" binding="same">
  270.                         <string>Arial</string>
  271.                 </edit>
  272.         </match>

  273.         <match target="pattern">
  274.                 <test name="prefer_outline">
  275.                         <bool>true</bool>
  276.                 </test>
  277.                 <test name="family">
  278.                         <string>Times</string>
  279.                 </test>
  280.                 <edit name="family" mode="prepend" binding="same">
  281.                         <string>Times New Roman</string>
  282.                 </edit>
  283.         </match>
  284. <!--
  285.   Provide required aliases for standard names
  286. -->
  287.         <alias>
  288.                 <family>serif</family>
  289.                 <prefer>
  290.                         <family>Bitstream Vera Serif</family>
  291.                         <family>Times New Roman</family>
  292.                         <family>Nimbus Roman No9 L</family>
  293.                         <family>Luxi Serif</family>
  294.                         <family>Times</family>
  295.                         <family>SimSun</family>
  296.                         <family>Kochi Mincho</family>
  297.                         <family>AR PL SungtiL GB</family>
  298.                         <family>AR PL Mingti2L Big5</family>
  299.                         <family>Baekmuk Batang</family>                       
  300.                 </prefer>
  301.         </alias>
  302.         <alias>
  303.                 <family>sans-serif</family>
  304.                 <prefer>
  305.                         <family>Bitstream Vera Sans</family>
  306.                         <family>Verdana</family>
  307.                         <family>Nimbus Sans L</family>
  308.                         <family>Luxi Sans</family>
  309.                         <family>Arial</family>
  310.                         <family>Helvetica</family>
  311.                          <family>SimSun</family>
  312.                         <family>Kochi Gothic</family>
  313.                         <family>AR PL KaitiM GB</family>
  314.                         <family>AR PL KaitiM Big5</family>
  315.                         <family>Baekmuk Dotum</family>
  316.                 </prefer>
  317.         </alias>
  318.         <alias>
  319.                 <family>monospace</family>
  320.                 <prefer>
  321.                         <family>Bitstream Vera Sans Mono</family>
  322.                         <family>Andale Mono</family>
  323.                         <family>Courier New</family>
  324.                         <family>Luxi Mono</family>
  325.                         <family>Nimbus Mono L</family>
  326.                         <family>SimSun</family>
  327.                         <family>Kochi Gothic</family>
  328.                         <family>AR PL KaitiM GB</family>
  329.                         <family>Baekmuk Dotum</family>
  330.                 </prefer>
  331.         </alias>
  332.         <alias>
  333.                 <family>song ti</family>
  334.                 <prefer>
  335.                         <family>Tahoma</family>
  336.                         <family>SimSun</family>
  337.                 </prefer>
  338.         </alias>
  339. <!--
  340. Artificial oblique for fonts without an italic or oblique version
  341. -->

  342.         <match target="font">
  343.                 <!-- check to see if the font is roman -->
  344.                 <test name="slant">
  345.                         <const>roman</const>
  346.                 </test>
  347.                 <!-- check to see if the pattern requested non-roman -->
  348.                 <test target="pattern" name="slant" compare="not_eq">
  349.                         <const>roman</const>
  350.                 </test>
  351.                 <!-- multiply the matrix to slant the font -->
  352.                 <edit name="matrix" mode="assign">
  353.                         <times>
  354.                                 <name>matrix</name>
  355.                                 <matrix><double>1</double><double>0.2</double>
  356.                                         <double>0</double><double>1</double>
  357.                                 </matrix>
  358.                         </times>
  359.                 </edit>
  360.                 <!-- pretend the font is oblique now -->
  361.                 <edit name="slant" mode="assign">
  362.                         <const>oblique</const>
  363.                 </edit>
  364.         </match>

  365.         <config>
  366. <!--
  367. Artificial bold for fonts without an bold version
  368. -->
  369.         <!--
  370.         <match target="font">
  371.                 <test name="weight" compare="less_eq">
  372.                         <const>medium</const>
  373.                 </test>
  374.                 <test target="pattern" name="weight" compare="more">
  375.                         <const>medium</const>
  376.                 </test>
  377.                 <edit name="weight" mode="assign">
  378.                         <const>bold</const>
  379.                 </edit>
  380.         </match>
  381.         -->

  382. <!--
  383.   These are the default Unicode chars that are expected to be blank
  384.   in fonts.  All other blank chars are assumed to be broken and
  385.   won't appear in the resulting charsets
  386. -->
  387.                 <blank>
  388.                         <int>0x0020</int>        <!-- SPACE -->
  389.                         <int>0x00a0</int>        <!-- NO-BREAK SPACE -->
  390.                         <int>0x00ad</int>        <!-- SOFT HYPHEN -->
  391.                         <int>0x115f</int>        <!-- HANGUL CHOSEONG FILLER -->
  392.                         <int>0x1160</int>        <!-- HANGUL JUNGSEONG FILLER -->
  393.                         <int>0x1680</int>        <!-- OGHAM SPACE MARK -->
  394.                         <int>0x2000</int>        <!-- EN QUAD -->
  395.                         <int>0x2001</int>        <!-- EM QUAD -->
  396.                         <int>0x2002</int>        <!-- EN SPACE -->
  397.                         <int>0x2003</int>        <!-- EM SPACE -->
  398.                         <int>0x2004</int>        <!-- THREE-PER-EM SPACE -->
  399.                         <int>0x2005</int>        <!-- FOUR-PER-EM SPACE -->
  400.                         <int>0x2006</int>        <!-- SIX-PER-EM SPACE -->
  401.                         <int>0x2007</int>        <!-- FIGURE SPACE -->
  402.                         <int>0x2008</int>        <!-- PUNCTUATION SPACE -->
  403.                         <int>0x2009</int>        <!-- THIN SPACE -->
  404.                         <int>0x200a</int>        <!-- HAIR SPACE -->
  405.                         <int>0x200b</int>        <!-- ZERO WIDTH SPACE -->
  406.                         <int>0x200c</int>        <!-- ZERO WIDTH NON-JOINER -->
  407.                         <int>0x200d</int>        <!-- ZERO WIDTH JOINER -->
  408.                         <int>0x200e</int>        <!-- LEFT-TO-RIGHT MARK -->
  409.                         <int>0x200f</int>        <!-- RIGHT-TO-LEFT MARK -->
  410.                         <int>0x2028</int>        <!-- LINE SEPARATOR -->
  411.                         <int>0x2029</int>        <!-- PARAGRAPH SEPARATOR -->
  412.                         <int>0x202a</int>        <!-- LEFT-TO-RIGHT EMBEDDING -->
  413.                         <int>0x202b</int>        <!-- RIGHT-TO-LEFT EMBEDDING -->
  414.                         <int>0x202c</int>        <!-- POP DIRECTIONAL FORMATTING -->
  415.                         <int>0x202d</int>        <!-- LEFT-TO-RIGHT OVERRIDE -->
  416.                         <int>0x202e</int>        <!-- RIGHT-TO-LEFT OVERRIDE -->
  417.                         <int>0x202f</int>        <!-- NARROW NO-BREAK SPACE -->
  418.                         <int>0x205f</int>        <!-- MEDIUM MATHEMATICAL SPACE -->
  419.                         <int>0x2060</int>        <!-- WORD JOINER -->
  420.                         <int>0x2061</int>        <!-- FUNCTION APPLICATION -->
  421.                         <int>0x2062</int>        <!-- INVISIBLE TIMES -->
  422.                         <int>0x2063</int>        <!-- INVISIBLE SEPARATOR -->
  423.                         <int>0x206A</int>        <!-- INHIBIT SYMMETRIC SWAPPING -->
  424.                         <int>0x206B</int>        <!-- ACTIVATE SYMMETRIC SWAPPING -->
  425.                         <int>0x206C</int>        <!-- INHIBIT ARABIC FORM SHAPING -->
  426.                         <int>0x206D</int>        <!-- ACTIVATE ARABIC FORM SHAPING -->
  427.                         <int>0x206E</int>        <!-- NATIONAL DIGIT SHAPES -->
  428.                         <int>0x206F</int>        <!-- NOMINAL DIGIT SHAPES -->
  429.                         <int>0x3000</int>        <!-- IDEOGRAPHIC SPACE -->
  430.                         <int>0x3164</int>        <!-- HANGUL FILLER -->
  431.                         <int>0xfeff</int>        <!-- ZERO WIDTH NO-BREAK SPACE -->
  432.                         <int>0xffa0</int>        <!-- HALFWIDTH HANGUL FILLER -->
  433.                         <int>0xfff9</int>        <!-- INTERLINEAR ANNOTATION ANCHOR -->
  434.                         <int>0xfffa</int>        <!-- INTERLINEAR ANNOTATION SEPARATOR -->
  435.                         <int>0xfffb</int>        <!-- INTERLINEAR ANNOTATION TERMINATOR -->
  436.                 </blank>
  437. <!--
  438.   Rescan configuration every 30 seconds when FcFontSetList is called
  439. -->
  440.                 <rescan>
  441.                         <int>30</int>
  442.                 </rescan>
  443.         </config>

  444. </fontconfig>
复制代码


local.conf的配置:
  1. <?xml version="1.0"?>
  2. <!DOCTYPE fontconfig SYSTEM "fonts.dtd">
  3. <!-- /etc/fonts/local.conf file for local customizations --><fontconfig>
  4. <!--
  5.   Enable sub-pixel rendering
  6.         <match target="font">
  7.                 <test qual="all" name="rgba">
  8.                         <const>unknown</const>
  9.                 </test>
  10.                 <edit name="rgba" mode="assign"><const>rgb</const></edit>
  11.         </match>
  12. -->


  13. <dir>/usr/local/zhfonts</dir>
  14. <dir>/usr/local/enfonts</dir>
  15. <dir>/usr/share/fonts</dir>
  16. <!--
  17. <dir>/usr/lib/X11/fonts/misc</dir>
  18. <dir>/usr/lib/X11/fonts/100dpi</dir>
  19. <dir>/usr/lib/X11/fonts/75dpi</dir>
  20. <dir>/usr/lib/X11/fonts/Type1</dir>
  21. <dir>/usr/lib/X11/fonts/Speedo</dir>
  22. -->

  23. <!--
  24.   Add by Firefly(firefly@firefly.idv.tw)
  25. -->
  26. <match target="font" >
  27.   <edit name="embeddedbitmap" mod="assign" >
  28.    <bool>true</bool>
  29.   </edit>
  30. </match>
  31. <!--
  32.   Add by Firefly(firefly@firefly.idv.tw)
  33.   Most of Asian fonts can't explain by freetype2,
  34.   so,if these fonts have dual width(half/full) and monospacing,
  35.   you need to disable globaladvance.
  36.   -->
  37.   <!--
  38.   <match target="font" > <test compare="more_eq" name="spacing" >
  39.                   <const>dual</const>
  40.           </test>
  41.           <edit mode="assign" name="globaladvance" >
  42.                   <bool>false</bool>
  43.           </edit>
  44.   </match>
  45.   -->
  46.   <!-- Antialias settings -->
  47.   <match target="font">
  48.           <edit name="antialias">
  49.                   <bool>true</bool>
  50.           </edit>
  51.   </match>

  52.   <match target="font">
  53.           <test target="pattern" name="lang" compare="contains">
  54.                   <string>zh-tw</string>
  55.                   <string>zh-cn</string>
  56.                   <string>ja</string>
  57.                   <string>ko</string>
  58.           </test>
  59.           <edit name="spacing">
  60.                   <const>proportional</const>
  61.           </edit>
  62.           <edit name="globaladvance">
  63.                   <bool>false</bool>
  64.           </edit>
  65.   </match>

  66. <!--
  67. Add by firefly@firefly.idv.tw
  68. Artificial bold for fonts without a bold version.
  69. -->
  70. <match target="font" >
  71.          <!-- check to see if the pattern requested > "medium" -->
  72.          <test compare="more" target="pattern" name="weight" >
  73.                  <const>medium</const>
  74.          </test>
  75.          <!-- pretend the font is bold now -->
  76.             <edit mode="assign" name="weight" >
  77.                  <const>bold</const>
  78.          </edit>
  79. </match>

  80. <!--
  81. <match target="font" >
  82.          <test compare="more" name="size" qual="any" >
  83.                  <double>6</double>
  84.          </test>
  85.          <test compare="less" name="size" qual="any" >
  86.                  <double>16</double>
  87.          </test>
  88.          <edit mode="assign" name="antialias" >
  89.                  <bool>true</bool>
  90.          </edit>
  91. </match>

  92. <match target="font" >
  93.          <test compare="more" name="pixelsize" qual="any" >
  94.                  <double>6</double>
  95.          </test>
  96.          <test compare="less" name="pixelsize" qual="any" >
  97.                  <double>16</double>
  98.          </test>
  99.          <edit mode="assign" name="antialias" >
  100.                  <bool>true</bool>
  101.          </edit>
  102. </match>
  103. -->

  104. <match target="font" >
  105.          <test compare="less" name="size" qual="any" >
  106.                  <double>9</double>
  107.          </test>
  108.          <edit mode="assign" name="size" >
  109.                  <double>9</double>
  110.          </edit>
  111. </match>

  112. <match target="font" >
  113.          <test compare="less" name="pixelsize" qual="any" >
  114.                  <double>9</double>
  115.          </test>
  116.          <edit mode="assign" name="pixelsize" >
  117.                  <double>9</double>
  118.          </edit>
  119. </match>

  120. <!--
  121.   Add by firefly@firefly.idv.tw
  122.   -->
  123.   <match target="font" >
  124.           <test compare="contains" name="lang" >
  125.                   <string>zh</string>
  126.                   <string>ja</string>
  127.                   <string>ko</string>
  128.           </test>

  129.           <edit mode="assign" name="autohint" >
  130.                   <bool>true</bool>
  131.           </edit>

  132.           <!--
  133.           <edit mode="assign" name="hintstyle" >
  134.                   <const>hintslight</const>
  135.           </edit>
  136.           -->

  137.           <edit mode="assign" name="usegamma" >
  138.                   <if>
  139.                           <less>
  140.                                   <name>pixelsize</name>
  141.                                   <double>20</double>
  142.                           </less>
  143.                   </if>
  144.                   <bool>false</bool>
  145.           </edit>
  146.   </match>

  147. </fontconfig>
复制代码

本帖子中包含更多资源

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

x
发表于 2006-3-25 23:32:09 | 显示全部楼层
搜索"中文美化overlay"
回复 支持 反对

使用道具 举报

发表于 2006-3-26 00:29:40 | 显示全部楼层
我的Opera可显示粗体,没装Firefox。
我的配置文件如下
<?xml version="1.0"?>
<!DOCTYPE fontconfig SYSTEM "fonts.dtd">
<fontconfig>
<!-- 要设置的内容统统在这里-->
<dir>/usr/share/fonts</dir>
<dir>/usr/share/fonts/TrueType</dir>
<!-- Default fonts -->
<alias>
<family>Times New Roman</family>
<family>Times</family>
<family>SimSun</family>
<family>MingLiU</family>
<default><family>serif</family></default>
</alias>
<alias>
<family>Tahoma</family>
<family>SimSun</family>
<family>MingLiU</family>
<default><family>sans-serif</family></default>
</alias>
<alias>
<family>Terminal</family>
<family>Courier New</family>
<family>SimSun</family>
<family>MingLiU</family>
<default><family>monospace</family></default>
</alias>
<!-- 字体替换顺序 -->
<alias>
<family>serif</family>
<prefer>
<family>Times New Roman</family>
<family>Times</family>
<family>SimSun</family>
<family>MingLiU</family>
</prefer>
</alias>
<alias>
<family>sans-serif</family>
<prefer>
<family>Tahoma</family>
<family>SimSun</family>
<family>MingLiU</family>
</prefer>
</alias>
<alias>
<family>monospace</family>
<prefer>
<family>Terminal</family>
<family>Courier New</family>
<family>SimSun</family>
<family>MingLiU</family>
</prefer>
</alias>
<!-- 选中的字体,不要anti-alias (就是不要模模糊糊的那种) -->
<match target="font" >
<test name="family" qual="any" >
        <string>Tahoma</string>
        <string>Verdana</string>
        <string>Arial</string>
        <string>Times</string>
        <string>Times New Roman</string>
        <string>Courier</string>
        <string>Courier New</string>
        <string>SimSun</string>
        <string>MingLiU</string>
        <string>Monospace</string>
  </test>
  <edit mode="assign" name="antialias" >
   <bool>false</bool>
  </edit>
</match>
<!-- 解决使用中文字体时,英文字间距加倍问题 -->
<match target="font">
<edit name="spacing">
<const>proportional</const>
<const>dual</const>
</edit>
<edit name="globaladvance">
<bool>false</bool>
</edit>
</match>
<!-- artificial bold by: firefly-->
<match target="font">
<!-- check to see if the font is just regular -->
<test name="weight" compare="less_eq">
<int>100</int>
</test>
<!-- check to see if the pattern requests bold -->
<test target="pattern" name="weight" compare="more_eq">
<int>180</int>
</test>
<!-- set the embolden flag -->
<edit name="embolden" mode="assign">
<bool>true</bool>
</edit>
</match>
</fontconfig>
不知道你用的是Xorg 7.0 还是 6.8 ,如果是7.0 的话,不改配置文件都可以出粗体,我现在用xorg 7.0 ,就只加了去模糊的那一段,其它的省略了。如果是6.8 ,应该还需要装 libXft
注意,一定要用 emerge -O libXft
回复 支持 反对

使用道具 举报

发表于 2006-3-26 00:31:02 | 显示全部楼层
我是拷了windows 下的几个字体
回复 支持 反对

使用道具 举报

发表于 2006-3-26 09:49:10 | 显示全部楼层
如果是使用simsun字体,我弄得没错的话,firefox-bin是不能显示中文粗体的。自己编译的firefox可以有中文粗体。
回复 支持 反对

使用道具 举报

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

本版积分规则

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