LinuxSir.cn,穿越时空的Linuxsir!

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

请问能英文使用一种字体,中文使用一种字体吗?

[复制链接]
发表于 2006-7-22 12:26:33 | 显示全部楼层 |阅读模式
按照某些教程配置(宋体)后,显示时中文能达到在windows下面看起来那种细腻的效果,而英文却发虚。请看附图。

本帖子中包含更多资源

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

x
发表于 2006-7-22 15:03:03 | 显示全部楼层
可以很负责的告诉楼主,可以,只要你会修改font.conf,就是你要会fontconfig这个软件的原理,具体如何,你可以上网搜索,我的水平不够,自己用还凑合,但是要教人就有点那个了
我可以贴一张我的截图

本帖子中包含更多资源

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

x
回复 支持 反对

使用道具 举报

发表于 2006-7-22 15:05:49 | 显示全部楼层
在贴一下我的font.conf文件的内容,给楼主做参考了
我中文是文泉驿(WenQuanYi Bitmap Song)的中文,英文是Bitstream Vera Sans
但是我配置的不好,其他的很多字体显示不出来了,如果只是要这两种组合是够了


  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/share/X11/fonts/Type1</dir> <dir>/usr/share/X11/fonts/OTF</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>WenQuanYi Bitmap Song</family>
  66.                 <family>Times New Roman</family>
  67.                 <family>Thorndale AMT</family>
  68.                 <family>Times</family>
  69.                
  70.                 <family>Nimbus Roman No9 L</family>
  71.                 <family>Luxi Serif</family>
  72.                 <family>Sazanami Mincho</family>
  73.                 <family>Kochi Mincho</family>
  74.                 <family>AR PL ZenKai Uni</family>
  75.                 <family>AR PL SungtiL GB</family>
  76.                 <family>AR PL Mingti2L Big5</family>
  77.                 <family>MS 明朝</family>
  78.                 <family>Baekmuk Batang</family>
  79.                 <family>FreeSerif</family>
  80.                 <family>MgOpen Canonica</family>
  81.                 <default><family>serif</family></default>
  82.         </alias>
  83. <!--
  84.   Sans-serif faces
  85. -->
  86.         <alias>
  87.                 <family>Bitstream Vera Sans</family>
  88.                 <family>WenQuanYi Bitmap Song</family>
  89.                 <family>Helvetica</family>
  90.                
  91.                 <family>Arial</family>
  92.                 <family>Verdana</family>
  93.                
  94.                 <family>Albany AMT</family>
  95.                 <family>Nimbus Sans L</family>
  96.                 <family>Luxi Sans</family>
  97.                 <family>Sazanami Gothic</family>
  98.                 <family>Kochi Gothic</family>
  99.                 <family>AR PL ShanHeiSun Uni</family>
  100.                 <family>AR PL KaitiM GB</family>
  101.                 <family>AR PL KaitiM Big5</family>
  102.                 <family>MS ゴシック</family>
  103.                 <family>Baekmuk Dotum</family>
  104.                 <family>SimSun</family>
  105.                 <family>FreeSans</family>
  106.                 <family>MgOpen Modata</family>
  107.                 <default><family>sans-serif</family></default>
  108.         </alias>
  109. <!--
  110.   Monospace faces
  111. -->
  112.         <alias>
  113.                 <family>Bitstream Vera Sans Mono</family>
  114.                 <family>Courier</family>
  115.                 <family>Courier New</family>
  116.                 <family>WenQuanYi Bitmap Song</family>
  117.                 <family>Andale Mono</family>
  118.                 <family>Luxi Mono</family>
  119.                 <family>Cumberland AMT</family>
  120.                 <family>Nimbus Mono L</family>
  121.                 <family>NSimSun</family>
  122.                 <family>FreeMono</family>
  123.                 <default><family>monospace</family></default>
  124.         </alias>
  125. <!--
  126.   If the font still has no generic name, add sans-serif
  127. -->
  128.         <match target="pattern">
  129.                 <test qual="all" name="family" compare="not_eq">
  130.                         <string>sans-serif</string>
  131.                 </test>
  132.                 <test qual="all" name="family" compare="not_eq">
  133.                         <string>serif</string>
  134.                 </test>
  135.                 <test qual="all" name="family" compare="not_eq">
  136.                         <string>monospace</string>
  137.                 </test>
  138.                 <edit name="family" mode="append_last">
  139.                         <string>sans-serif</string>
  140.                 </edit>
  141.         </match>

  142. <!--
  143.   URW provides metric and shape compatible fonts for these 3 Adobe families.
  144.   -->
  145.         <alias>
  146.           <family>Times</family>
  147.           <accept>
  148.             <family>Nimbus Roman No9 L</family>
  149.             <family>Thorndale AMT</family>
  150.             <family>Times New Roman</family>
  151.           </accept>
  152.         </alias>
  153.         <alias>
  154.           <family>Helvetica</family>
  155.           <accept>
  156.             <family>Nimbus Sans L</family>
  157.             <family>Albany AMT</family>
  158.             <family>Arial</family>
  159.           </accept>
  160.         </alias>
  161.         <alias>
  162.           <family>Courier</family>
  163.           <accept>
  164.             <family>Cumberland AMT</family>
  165.             <family>Courier New</family>
  166.             <family>WenQuanYi Bitmap Song</family>
  167.             <family>Nimbus Mono L</family>
  168.           </accept>
  169.         </alias>

  170.         <alias>
  171.           <family>ZapfDingbats</family>
  172.           <accept><family>Dingbats</family></accept>
  173.         </alias>

  174.         <alias>
  175.           <family>Symbol</family>
  176.           <accept><family>Open Symbols L</family></accept>
  177.         </alias>

  178. <!--
  179. AMT provides metric and shape compatible fonts for these three web font
  180. families.
  181. -->
  182.         <alias>
  183.                 <family>Times New Roman</family>
  184.                 <accept>
  185.                         <family>Thorndale AMT</family>
  186.                         <family>Nimbus Roman No9 L</family>
  187.                 </accept>
  188.         </alias>
  189.         <alias>
  190.                 <family>Arial</family>
  191.                 <accept>
  192.                         <family>Albany AMT</family>
  193.                         <family>Nimbus Sans L</family>
  194.                         <family>Arial</family>
  195.                 </accept>
  196.         </alias>
  197.         <alias>
  198.                 <family>Courier New</family>
  199.                 <accept><family>Cumberland AMT</family></accept>
  200.         </alias>

  201. <!--
  202.   Some Asian fonts misadvertise themselves as monospaced when
  203.   in fact they are dual-spaced (half and full).  This makes
  204.   FreeType very confused as it forces all widths to match.
  205.   Undo this magic by disabling the width forcing code -->
  206.         <match target="font">
  207.                 <test name="family"><string>GulimChe</string></test>
  208.                 <edit name="globaladvance"><bool>false</bool></edit>
  209.         </match>

  210.         <match target="font">
  211.                 <test name="family"><string>DotumChe</string></test>
  212.                 <edit name="globaladvance"><bool>false</bool></edit>
  213.         </match>

  214.         <match target="font">
  215.                 <test name="family"><string>BatangChe</string></test>
  216.                 <edit name="globaladvance"><bool>false</bool></edit>
  217.         </match>

  218.         <match target="font">
  219.                 <test name="family"><string>GungsuhChe</string></test>
  220.                 <edit name="globaladvance"><bool>false</bool></edit>
  221.         </match>

  222. <!--
  223.         The Bitstream Vera fonts have GASP entries suggesting that hinting be
  224.         disabled below 8 ppem, but FreeType ignores those, preferring to use
  225.         the data found in the instructed hints.  The initial Vera release
  226.         didn't include the right instructions in the 'prep' table. Fix this
  227.         by disabling hinting manually at smaller sizes (< 8ppem)
  228. -->

  229.         <match target="font">
  230.                 <test name="family">
  231.                         <string>Bitstream Vera Sans</string>
  232.                 </test>
  233.                 <test name="pixelsize" compare="less">
  234.                         <double>7.5</double>
  235.                 </test>
  236.                 <edit name="hinting">
  237.                         <bool>false</bool>
  238.                 </edit>
  239.         </match>

  240.         <match target="font">
  241.                 <test name="family">
  242.                         <string>Bitstream Vera Serif</string>
  243.                 </test>
  244.                 <test name="pixelsize" compare="less">
  245.                         <double>7.5</double>
  246.                 </test>
  247.                 <edit name="hinting">
  248.                         <bool>false</bool>
  249.                 </edit>
  250.         </match>

  251.         <match target="font">
  252.                 <test name="family">
  253.                         <string>Bitstream Vera Sans Mono</string>
  254.                 </test>
  255.                 <test name="pixelsize" compare="less">
  256.                         <double>7.5</double>
  257.                 </test>
  258.                 <edit name="hinting">
  259.                         <bool>false</bool>
  260.                 </edit>
  261.         </match>

  262. <!--
  263.   Load per-user customization file
  264. -->
  265.         <include ignore_missing="yes">~/.fonts.conf</include>

  266. <!--
  267.   Load local system customization file
  268. -->
  269.         <include ignore_missing="yes">conf.d</include>
  270.         <include ignore_missing="yes">local.conf</include>

  271. <!--
  272.   Provide required aliases for standard names
  273. -->
  274.         <alias>
  275.                 <family>serif</family>
  276.                 <prefer>
  277.                         <family>Nimbus Roman No9 L</family>
  278.                         <family>Thorndale AMT</family>
  279.                         <family>Bitstream Vera Serif</family>
  280.                         <family>WenQuanYi Bitmap Song</family>
  281.                         <family>Times New Roman</family>
  282.                         <family>Luxi Serif</family>
  283.                         <family>Times</family>
  284.                        
  285.                         <family>KacstQura</family>
  286.                         <family>Frank Ruehl CLM</family>
  287.                         <family>Lohit Bengali</family>
  288.                         <family>Lohit Gujarati</family>
  289.                         <family>Lohit Hindi</family>
  290.                         <family>Lohit Punjabi</family>
  291.                         <family>Lohit Tamil</family>
  292.                         <family>Sazanami Mincho</family>
  293.                         <family>Kochi Mincho</family>
  294.                         <family>ZYSong18030</family>
  295.                         <family>MgOpen Canonica</family>
  296.                         <family>FreeSerif</family>
  297.                         <family>AR PL Zenkai Uni</family>
  298.                         <family>AR PL SungtiL GB</family>
  299.                         <family>AR PL Mingti2L Big5</family>
  300.                         <family>MS 明朝</family>
  301.                         <family>Baekmuk Batang</family>
  302.                 </prefer>
  303.         </alias>
  304.         <alias>
  305.                 <family>sans-serif</family>
  306.                 <prefer>
  307.                         <family>Luxi Sans</family>
  308.                         <family>Albany AMT</family>
  309.                         <family>Bitstream Vera Sans</family>
  310.                         <family>WenQuanYi Bitmap Song</family>
  311.                         <family>Verdana</family>
  312.                        
  313.                         <family>Arial</family>
  314.                         <family>Nimbus Sans L</family>
  315.                         <family>Helvetica</family>
  316.                           <family>KacstQura</family>
  317.                         <family>Nachlieli</family>
  318.                         <family>Lohit Bengali</family>
  319.                         <family>Lohit Gujarati</family>
  320.                         <family>Lohit Hindi</family>
  321.                         <family>Lohit Punjabi</family>
  322.                         <family>Lohit Tamil</family>
  323.                         <family>Sazanami Gothic</family>
  324.                         <family>Kochi Gothic</family>
  325.                         <family>MS ゴシック</family>
  326.                         <family>MgOpen Modata</family>
  327.                         <family>FreeSans</family>
  328.                         <family>ZYSong18030</family>
  329.                         <family>AR PL ShanHeiSun Uni</family>
  330.                         <family>AR PL SungtiL GB</family>
  331.                         <family>AR PL Mingti2L Big5</family>
  332.                         <family>Baekmuk Gulim</family>
  333.                         <family>SimSun</family>
  334.                 </prefer>
  335.         </alias>
  336.         <alias>
  337.                 <family>monospace</family>
  338.                 <prefer>
  339.                         <family>Luxi Mono</family>
  340.                         <family>Bitstream Vera Sans Mono</family>
  341.                         <family>Andale Mono</family>
  342.                         <family>Courier New</family>
  343.                         <family>WenQuanYi Bitmap Song</family>
  344.                         <family>Cumberland AMT</family>
  345.                         <family>KacstQura</family>
  346.                         <family>Miriam Mono CLM</family>
  347.                         <family>Lohit Bengali</family>
  348.                         <family>Lohit Gujarati</family>
  349.                         <family>Lohit Hindi</family>
  350.                         <family>Lohit Punjabi</family>
  351.                         <family>Lohit Tamil</family>
  352.                         <family>Nimbus Mono L</family>
  353.                         <family>Courier</family>
  354.                         <family>Sazanami Gothic</family>
  355.                         <family>Kochi Gothic</family>
  356.                         <family>ZYSong18030</family>
  357.                         <family>AR PL ShanHeiSun Uni</family>
  358.                         <family>AR PL SungtiL GB</family>
  359.                         <family>AR PL Mingti2L Big5</family>
  360.                         <family>Baekmuk Gulim</family>
  361.                         <family>FreeMono</family>
  362.                 </prefer>
  363.         </alias>

  364. <!--
  365. Artificial oblique for fonts without an italic or oblique version
  366. -->

  367.         <match target="font">
  368.                 <!-- check to see if the font is roman -->
  369.                 <test name="slant">
  370.                         <const>roman</const>
  371.                 </test>
  372.                 <!-- check to see if the pattern requested non-roman -->
  373.                 <test target="pattern" name="slant" compare="not_eq">
  374.                         <const>roman</const>
  375.                 </test>
  376.                 <!-- multiply the matrix to slant the font -->
  377.                 <edit name="matrix" mode="assign">
  378.                         <times>
  379.                                 <name>matrix</name>
  380.                                 <matrix><double>1</double><double>0.2</double>
  381.                                         <double>0</double><double>1</double>
  382.                                 </matrix>
  383.                         </times>
  384.                 </edit>
  385.                 <!-- pretend the font is oblique now -->
  386.                 <edit name="slant" mode="assign">
  387.                         <const>oblique</const>
  388.                 </edit>
  389.                 <!-- and disable embedded bitmaps for artificial oblique -->
  390.                 <edit name="embeddedbitmap" mode="assign">
  391.                         <bool>false</bool>
  392.                 </edit>
  393.         </match>

  394. <!--
  395. Synthetic emboldening for fonts that do not have bold face available
  396. -->

  397.         <match target="font">
  398.                 <!-- check to see if the font is just regular -->
  399.                 <test name="weight" compare="less_eq">
  400.                         <const>medium</const>
  401.                 </test>
  402.                 <!-- check to see if the pattern requests bold -->
  403.                 <test target="pattern" name="weight" compare="more">
  404.                         <const>medium</const>
  405.                 </test>
  406.                 <!--
  407.                   set the embolden flag
  408.                   needed for applications using cairo, e.g. gucharmap, gedit, ...
  409.                 -->
  410.                 <edit name="embolden" mode="assign">
  411.                         <bool>true</bool>
  412.                 </edit>
  413.                 <!--
  414.                  set weight to bold
  415.                  needed for applications using Xft directly, e.g. Firefox, ...
  416.                 -->
  417.                 <edit name="weight" mode="assign">
  418.                         <const>bold</const>
  419.                 </edit>
  420.         </match>


  421.         <config>
  422. <!--
  423.   These are the default Unicode chars that are expected to be blank
  424.   in fonts.  All other blank chars are assumed to be broken and
  425.   won't appear in the resulting charsets
  426. -->
  427.                 <blank>
  428.                         <int>0x0020</int>        <!-- SPACE -->
  429.                         <int>0x00A0</int>        <!-- NO-BREAK SPACE -->
  430.                         <int>0x00AD</int>        <!-- SOFT HYPHEN -->
  431.                         <int>0x034F</int>        <!-- COMBINING GRAPHEME JOINER -->
  432.                         <int>0x0600</int>        <!-- ARABIC NUMBER SIGN -->
  433.                         <int>0x0601</int>        <!-- ARABIC SIGN SANAH -->
  434.                         <int>0x0602</int>        <!-- ARABIC FOOTNOTE MARKER -->
  435.                         <int>0x0603</int>        <!-- ARABIC SIGN SAFHA -->
  436.                         <int>0x06DD</int>        <!-- ARABIC END OF AYAH -->
  437.                         <int>0x070F</int>        <!-- SYRIAC ABBREVIATION MARK -->
  438.                         <int>0x115F</int>        <!-- HANGUL CHOSEONG FILLER -->
  439.                         <int>0x1160</int>        <!-- HANGUL JUNGSEONG FILLER -->
  440.                         <int>0x1680</int>        <!-- OGHAM SPACE MARK -->
  441.                         <int>0x17B4</int>        <!-- KHMER VOWEL INHERENT AQ -->
  442.                         <int>0x17B5</int>        <!-- KHMER VOWEL INHERENT AA -->
  443.                         <int>0x180E</int>        <!-- MONGOLIAN VOWEL SEPARATOR -->
  444.                         <int>0x2000</int>        <!-- EN QUAD -->
  445.                         <int>0x2001</int>        <!-- EM QUAD -->
  446.                         <int>0x2002</int>        <!-- EN SPACE -->
  447.                         <int>0x2003</int>        <!-- EM SPACE -->
  448.                         <int>0x2004</int>        <!-- THREE-PER-EM SPACE -->
  449.                         <int>0x2005</int>        <!-- FOUR-PER-EM SPACE -->
  450.                         <int>0x2006</int>        <!-- SIX-PER-EM SPACE -->
  451.                         <int>0x2007</int>        <!-- FIGURE SPACE -->
  452.                         <int>0x2008</int>        <!-- PUNCTUATION SPACE -->
  453.                         <int>0x2009</int>        <!-- THIN SPACE -->
  454.                         <int>0x200A</int>        <!-- HAIR SPACE -->
  455.                         <int>0x200B</int>        <!-- ZERO WIDTH SPACE -->
  456.                         <int>0x200C</int>        <!-- ZERO WIDTH NON-JOINER -->
  457.                         <int>0x200D</int>        <!-- ZERO WIDTH JOINER -->
  458.                         <int>0x200E</int>        <!-- LEFT-TO-RIGHT MARK -->
  459.                         <int>0x200F</int>        <!-- RIGHT-TO-LEFT MARK -->
  460.                         <int>0x2028</int>        <!-- LINE SEPARATOR -->
  461.                         <int>0x2029</int>        <!-- PARAGRAPH SEPARATOR -->
  462.                         <int>0x202A</int>        <!-- LEFT-TO-RIGHT EMBEDDING -->
  463.                         <int>0x202B</int>        <!-- RIGHT-TO-LEFT EMBEDDING -->
  464.                         <int>0x202C</int>        <!-- POP DIRECTIONAL FORMATTING -->
  465.                         <int>0x202D</int>        <!-- LEFT-TO-RIGHT OVERRIDE -->
  466.                         <int>0x202E</int>        <!-- RIGHT-TO-LEFT OVERRIDE -->
  467.                         <int>0x202F</int>        <!-- NARROW NO-BREAK SPACE -->
  468.                         <int>0x205F</int>        <!-- MEDIUM MATHEMATICAL SPACE -->
  469.                         <int>0x2060</int>        <!-- WORD JOINER -->
  470.                         <int>0x2061</int>        <!-- FUNCTION APPLICATION -->
  471.                         <int>0x2062</int>        <!-- INVISIBLE TIMES -->
  472.                         <int>0x2063</int>        <!-- INVISIBLE SEPARATOR -->
  473.                         <int>0x206A</int>        <!-- INHIBIT SYMMETRIC SWAPPING -->
  474.                         <int>0x206B</int>        <!-- ACTIVATE SYMMETRIC SWAPPING -->
  475.                         <int>0x206C</int>        <!-- INHIBIT ARABIC FORM SHAPING -->
  476.                         <int>0x206D</int>        <!-- ACTIVATE ARABIC FORM SHAPING -->
  477.                         <int>0x206E</int>        <!-- NATIONAL DIGIT SHAPES -->
  478.                         <int>0x206F</int>        <!-- NOMINAL DIGIT SHAPES -->
  479.                         <int>0x3000</int>        <!-- IDEOGRAPHIC SPACE -->
  480.                         <int>0x3164</int>        <!-- HANGUL FILLER -->
  481.                         <int>0xFEFF</int>        <!-- ZERO WIDTH NO-BREAK SPACE -->
  482.                         <int>0xFFA0</int>        <!-- HALFWIDTH HANGUL FILLER -->
  483.                         <int>0xFFF9</int>        <!-- INTERLINEAR ANNOTATION ANCHOR -->
  484.                         <int>0xFFFA</int>        <!-- INTERLINEAR ANNOTATION SEPARATOR -->
  485.                         <int>0xFFFB</int>        <!-- INTERLINEAR ANNOTATION TERMINATOR -->
  486.                 </blank>
  487. <!--
  488.   Rescan configuration every 30 seconds when FcFontSetList is called
  489. -->
  490.                 <rescan>
  491.                         <int>30</int>
  492.                 </rescan>
  493.         </config>

  494. </fontconfig>
复制代码
回复 支持 反对

使用道具 举报

发表于 2006-7-22 15:08:36 | 显示全部楼层
还有在说一句,如果楼主看得惯文泉驿的英文的话,直接去文泉驿的网站上下字体的rpm包
不用做那么多配置了,不过我看不惯,感觉不好看
回复 支持 反对

使用道具 举报

发表于 2006-7-22 17:10:57 | 显示全部楼层
2楼正解。。。
不过如果嫌麻烦的话用园体字就很好看了,特别是终端里面。
深切慰问韶关受灾的同志们。。。
回复 支持 反对

使用道具 举报

 楼主| 发表于 2006-7-22 22:01:47 | 显示全部楼层
多谢KevinChen兄的指导!我现在马上去看看,平时网上说的都是直接教自己怎么配置的,没有讲解原理,自己也不懂xml,现在要好好理解一下原理才行。
回复 支持 反对

使用道具 举报

 楼主| 发表于 2006-7-22 22:02:45 | 显示全部楼层
感谢iwillrockyou 的慰问
回复 支持 反对

使用道具 举报

发表于 2006-7-23 20:46:54 | 显示全部楼层
如果可以通个气,我的方法没有在别的电脑上试过
其实更改font.conf的目的就是让系统可以知道要用那个字体文件来完成字体的显示
而font.conf里有显示字体的字体文件选择的顺序
把中文字体放在英文字体后面,就会用英文字体显示英文字体,然后才选择最近的中文字体显示中文(前提是这些字体文件都是单一的字体文件,就是单纯的英文,或者中文,根据这个原理,文泉驿的字体一定要放英文字体后面 )

不知道楼主会不会安装字体,我就顺带提一下好了,其实只要把字体cp到一个文件夹,然后mkfontdir;mkfontscale;接着/usr/sbin/chkfontpath -a <path to your font>
然后fc-cache -f -v就OK了
回复 支持 反对

使用道具 举报

 楼主| 发表于 2006-7-24 17:10:15 | 显示全部楼层
Post by KevinChen
如果可以通个气,我的方法没有在别的电脑上试过
其实更改font.conf的目的就是让系统可以知道要用那个字体文件来完成字体的显示
而font.conf里有显示字体的字体文件选择的顺序
把中文字体放在英文字体后面,就会用英文字体显示英文字体,然后才选择最近的中文字体显示中文(前提是这些字体文件都是单一的字体文件,就是单纯的英文,或者中文,根据这个原理,文泉驿的字体一定要放英文字体后面 )

不知道楼主会不会安装字体,我就顺带提一下好了,其实只要把字体cp到一个文件夹,然后mkfontdir;mkfontscale;接着/usr/sbin/chkfontpath -a <path to your font>
然后fc-cache -f -v就OK了


谢谢我会的。我现在配好了,中文字效果看起来跟windows下的宋体一模一样的。基本上也了解了font.conf的配置方法。不知用什么英文字体比较好??
回复 支持 反对

使用道具 举报

发表于 2006-7-24 23:47:20 | 显示全部楼层
楼主可以参考一下这个帖子
http://www.linuxsir.cn/bbs/showthread.php?t=260610


FC5 用上 Mac OS 中文字体的效果
gnome 界面:
http://imgfly.com/files/090606_014812/Screenshot-2.png

Firefox 浏览 Google:
http://imgfly.com/files/090606_014812/Screenshot.png

Firefox 浏览 LinuxSir:
http://imgfly.com/files/090606_014812/Screenshot-1.png
回复 支持 反对

使用道具 举报

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

本版积分规则

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