LinuxSir.cn,穿越时空的Linuxsir!

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

从magic上来的fonts.conf

[复制链接]
发表于 2004-11-5 18:02:28 | 显示全部楼层 |阅读模式
发个fonts.conf
我用的是10.0official,效果很好,不知道在10.1official上能不能行,有10.1official的帮忙试一下,效果好的话给个回信,我再装:p :p :p :p :p

本帖子中包含更多资源

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

x
 楼主| 发表于 2004-11-5 18:04:36 | 显示全部楼层
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>true</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>
复制代码
发表于 2004-11-5 21:10:29 | 显示全部楼层
xfree86的可以,xorg的好象不行,比如fedoracore1可以,23就不可以
 楼主| 发表于 2004-11-6 08:52:18 | 显示全部楼层
我装xorg之后不能显示粗体
您需要登录后才可以回帖 登录 | 注册

本版积分规则

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