LinuxSir.cn,穿越时空的Linuxsir!

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

只要几秒钟,让你的是文字体不再发虚

[复制链接]
发表于 2004-11-25 16:53:47 | 显示全部楼层 |阅读模式
根据下面朋友使用SimSun意见的修改(SimSun可以直接用windows内的)
把/etc/fonts/fonts.conf改名备份,在/etc/fonts/下新建一个文件,名为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/share/fonts</dir>
  18.         <dir>/usr/X11R6/lib/X11/fonts</dir> <dir>/opt/ttfonts</dir> <dir>/usr/share/yudit/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>Helvetica</family>
  71.                 <family>SimSun</family>
  72.                 <family>Times</family>
  73.                 <family>Times New Roman</family>
  74.                 <family>Nimbus Roman No9 L</family>
  75.                 <family>Luxi Serif</family>
  76.                 <family>Sazanami Mincho</family>
  77.                 <family>AR PL ShanHeiSun Uni</family>
  78.                 <family>AR PL SungtiL GB</family>
  79.                 <family>AR PL Mingti2L Big5</family>
  80.                 <family>Baekmuk Batang</family>                       
  81.                 <family>FreeSerif</family>
  82.                 <default><family>serif</family></default>
  83.         </alias>
  84. <!--
  85.   Sans-serif faces
  86. -->
  87.         <alias>
  88.                 <family>Helvetica</family>
  89.                 <family>SimSun</family>
  90.                 <family>Bitstream Vera Sans</family>
  91.                 <family>Arial</family>
  92.                 <family>Verdana</family>
  93.                 <family>Nimbus Sans L</family>
  94.                 <family>Luxi Sans</family>
  95.                 <family>Sazanami Gothic</family>
  96.                 <family>AR PL ZenKai Uni</family>
  97.                 <family>AR PL KaitiM GB</family>
  98.                 <family>AR PL KaitiM Big5</family>
  99.                 <family>Baekmuk Dotum</family>
  100.                 <family>FreeSans</family>
  101.                 <default><family>sans-serif</family></default>
  102.         </alias>
  103. <!--
  104.   Monospace faces
  105. -->
  106.         <alias>
  107.                 <family>Helvetica</family>
  108.                 <family>SimSun</family>
  109.                 <family>Bitstream Vera Sans Mono</family>
  110.                 <family>Courier</family>
  111.                 <family>Courier New</family>
  112.                 <family>Andale Mono</family>
  113.                 <family>Luxi Mono</family>
  114.                 <family>Nimbus Mono L</family>
  115.                 <family>NSimSun</family>
  116.                 <family>FreeMono</family>
  117.                 <default><family>monospace</family></default>
  118.         </alias>
  119. <!--
  120.   If the font still has no generic name, add sans-serif
  121. -->
  122.         <match target="pattern">
  123.                 <test qual="all" name="family" compare="not_eq">
  124.                         <string>sans-serif</string>
  125.                 </test>
  126.                 <test qual="all" name="family" compare="not_eq">
  127.                         <string>serif</string>
  128.                 </test>
  129.                 <test qual="all" name="family" compare="not_eq">
  130.                         <string>monospace</string>
  131.                 </test>
  132.                 <edit name="family" mode="append_last">
  133.                         <string>sans-serif</string>
  134.                 </edit>
  135.         </match>
  136.        
  137. <!--
  138.   Load per-user customization file
  139. -->
  140.         <include ignore_missing="yes">~/.fonts.conf</include>

  141. <!--
  142.   Load local system customization file
  143. -->
  144.         <include ignore_missing="yes">local.conf</include>

  145. <!--
  146.   Alias well known font names to available TrueType fonts
  147. -->
  148.         <alias>
  149.                 <family>Times</family>
  150.                 <accept><family>Times New Roman</family></accept>
  151.         </alias>
  152.         <alias>
  153.                 <family>Helvetica</family>
  154.                 <accept><family>Verdana</family></accept>
  155.         </alias>
  156.         <alias>
  157.                 <family>Arial</family>
  158.                 <accept><family>Verdana</family></accept>
  159.         </alias>
  160.         <alias>
  161.                 <family>Courier</family>
  162.                 <accept><family>Courier New</family></accept>
  163.         </alias>

  164. <!--
  165.   Provide required aliases for standard names
  166. -->
  167.         <alias>
  168.                 <family>serif</family>
  169.                 <prefer>
  170.                         <family>Helvetica</family>
  171.                         <family>SimSun</family>
  172.                         <family>Times New Roman</family>
  173.                         <family>Nimbus Roman No9 L</family>
  174.                         <family>Luxi Serif</family>
  175.                         <family>Times</family>
  176.                         <family>Kochi Mincho</family>
  177.                         <family>AR PL SungtiL GB</family>
  178.                         <family>AR PL Mingti2L Big5</family>
  179.                         <family>Baekmuk Batang</family>
  180.                 </prefer>
  181.         </alias>
  182.         <alias>
  183.                 <family>sans-serif</family>
  184.                 <prefer>
  185.                         <family>Helvetica</family>
  186.                         <family>SimSun</family>
  187.                         <family>Verdana</family>
  188.                         <family>Nimbus Sans L</family>
  189.                         <family>Luxi Sans</family>
  190.                         <family>Arial</family>
  191.                         <family>Kochi Gothic</family>
  192.                         <family>AR PL KaitiM GB</family>
  193.                         <family>AR PL KaitiM Big5</family>
  194.                         <family>Baekmuk Dotum</family>

  195.                 </prefer>
  196.         </alias>
  197.         <alias>
  198.                 <family>monospace</family>
  199.                 <prefer>
  200.                         <family>Helvetica</family>
  201.                         <family>SimSun</family>
  202.                         <family>Andale Mono</family>
  203.                         <family>Courier New</family>
  204.                         <family>Luxi Mono</family>
  205.                         <family>Nimbus Mono L</family>
  206.                         <family>Kochi Gothic</family>
  207.                         <family>AR PL KaitiM GB</family>
  208.                         <family>Baekmuk Dotum</family>
  209.                 </prefer>
  210.         </alias>

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

  222. <match target="font" >
  223.   <test compare="more" name="pixelsize" qual="any" >
  224.    <double>8</double>
  225.   </test>
  226.   <test compare="less" name="pixelsize" qual="any" >
  227.    <double>16</double>
  228.   </test>
  229.   <edit mode="assign" name="antialias" >
  230.    <bool>false</bool>
  231.   </edit>
  232. </match>

  233. <!--
  234. Artificial oblique for fonts without an italic or oblique version
  235. -->

  236.         <match target="font">
  237.                 <!-- check to see if the font is roman -->
  238.                 <test name="slant">
  239.                         <const>roman</const>
  240.                 </test>
  241.                 <!-- check to see if the pattern requested non-roman -->
  242.                 <test target="pattern" name="slant" compare="not_eq">
  243.                         <const>roman</const>
  244.                 </test>
  245.                 <!-- multiply the matrix to slant the font -->
  246.                 <edit name="matrix" mode="assign">
  247.                         <times>
  248.                                 <name>matrix</name>
  249.                                 <matrix><double>1</double><double>.2</double>
  250.                                         <double>0</double><double>1</double>
  251.                                 </matrix>
  252.                         </times>
  253.                 </edit>
  254.                 <!--
  255.                 <edit name="antialias" mode="assign">
  256.                         <bool>true</bool>
  257.                 </edit>
  258.                 -->
  259.                 <!-- pretend the font is oblique now -->
  260.                 <edit name="slant" mode="assign">
  261.                         <const>oblique</const>
  262.                 </edit>
  263.         </match>
  264. <!--
  265. Add by [email]firefly@firefly.idv.tw[/email]
  266. Artificial bold for fonts without a bold version.
  267. -->
  268.         <match target="font">
  269.                 <!-- check to see if the pattern requested > "medium" -->
  270.                 <test target="pattern" name="weight" compare="more">
  271.                         <const>medium</const>
  272.                 </test>
  273.                 <!-- pretend the font is bold now -->
  274.                 <edit name="weight" mode="assign">
  275.                         <const>bold</const>
  276.                 </edit>
  277.         </match>


  278. <match target="font">
  279.         <test target="pattern" name="lang" compare="contains">
  280.                 <string>zh-tw</string>
  281.                 <string>zh-cn</string>
  282.                 <string>ja</string>
  283.                 <string>ko</string>
  284.         </test>
  285.                   <edit name="spacing">
  286.                         <const>proportional</const>
  287.                 </edit>
  288.         <edit name="globaladvance" mode="assign">
  289.                 <bool>false</bool>
  290.         </edit>
  291. </match>


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

  358. </fontconfig>

复制代码


在桌面配置内将字体全部调整为Helvetica。
在登录管理器内把字体也全部调整为Helvetica。
风格改为.net
我用的OPERA,字体为默认方式,国际字体内采用的SimSun,大小设置为13,效果如下:

本帖子中包含更多资源

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

x
 楼主| 发表于 2004-11-25 16:56:05 | 显示全部楼层
忘了说了,上面新建的文件名就是font.conf
 楼主| 发表于 2004-11-25 17:14:07 | 显示全部楼层
晕!写错了,新建的文件是fonts.conf,就是上面备份了的那一个。怎么这个论坛不能编辑贴子的。
发表于 2004-11-25 20:48:36 | 显示全部楼层
可以编辑的,右下脚不是有之笔吗
发表于 2004-11-25 21:06:34 | 显示全部楼层
果然不错!!!一点都不虚了!厉害
发表于 2004-11-25 21:12:39 | 显示全部楼层
太佩服了,你是怎么想出来的!!

就是scim里的字不大好看不知怎么调?
发表于 2004-11-25 21:25:35 | 显示全部楼层
这样一概可能开始菜单栏比较拥挤,可以把风格还一下如下图换为:.net

本帖子中包含更多资源

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

x
发表于 2004-11-25 21:27:37 | 显示全部楼层
不错呀,谢过了,只要不虚就好了:)
发表于 2004-11-25 21:32:29 | 显示全部楼层
不过有个问题就是针对gnome设计的软件的字体在kde下就不一致了,

本帖子中包含更多资源

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

x
发表于 2004-11-25 22:23:18 | 显示全部楼层
经这样一修改我发现gnome下的字体普遍比kde下的漂亮了,习惯gnome的这下高兴了
您需要登录后才可以回帖 登录 | 注册

本版积分规则

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