LinuxSir.cn,穿越时空的Linuxsir!

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

超级郁闷的firefox网页显示问题

[复制链接]
发表于 2005-3-9 20:45:37 | 显示全部楼层 |阅读模式
系统是2004.3、kenrel-2.6.10-ntiro4、xorg 6.8.1、kde 3.3.2、firefox 1.0.1,当系统加载nvidia驱动时,页面显示非常的完美,但是当用xorg自带的nv驱动时,则会出现缺字的现象。:(
具体的情况见下面的图,第一个是nv的情况,第二个是nvidia的情况:

本帖子中包含更多资源

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

x
 楼主| 发表于 2005-3-9 20:46:45 | 显示全部楼层
俺firefox的字体设置如下:

本帖子中包含更多资源

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

x
回复 支持 反对

使用道具 举报

 楼主| 发表于 2005-3-9 20:49:22 | 显示全部楼层
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 fonts@xfree86.org 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.   Load per-user customization file
  128. -->
  129.         <include ignore_missing="yes">~/.fonts.conf</include>

  130. <!--
  131.   Load local system customization file
  132. -->
  133.         <include ignore_missing="yes">local.conf</include>

  134. <!--
  135.   Alias well known font names to available TrueType fonts
  136. -->
  137.         <alias>
  138.                 <family>Times</family>
  139.                 <accept><family>Times New Roman</family></accept>
  140.         </alias>
  141.         <alias>
  142.                 <family>Helvetica</family>
  143.                 <accept><family>Verdana</family></accept>
  144.         </alias>
  145.         <alias>
  146.                 <family>Arial</family>
  147.                 <accept><family>Verdana</family></accept>
  148.         </alias>
  149.         <alias>
  150.                 <family>Courier</family>
  151.                 <accept><family>Courier New</family></accept>
  152.         </alias>

  153. <!--
  154.   Provide required aliases for standard names
  155. -->
  156.         <alias>
  157.                 <family>serif</family>
  158.                 <prefer>
  159.                         <family>Times New Roman</family>
  160.                         <family>Nimbus Roman No9 L</family>
  161.                         <family>Luxi Serif</family>
  162.                         <family>Times</family>
  163.                         <family>Simsun</family>
  164.                         <family>Kochi Mincho</family>
  165.                         <family>AR PL SungtiL GB</family>
  166.                         <family>AR PL Mingti2L Big5</family>
  167.                         <family>Baekmuk Batang</family>
  168.                 </prefer>
  169.         </alias>
  170.         <alias>
  171.                 <family>sans-serif</family>
  172.                 <prefer>
  173.                         <family>Verdana</family>
  174.                         <family>Nimbus Sans L</family>
  175.                         <family>Luxi Sans</family>
  176.                         <family>Arial</family>
  177.                         <family>Helvetica</family>
  178.                         <family>SimSun</family>
  179.                         <family>Kochi Gothic</family>
  180.                         <family>AR PL KaitiM GB</family>
  181.                         <family>AR PL KaitiM Big5</family>
  182.                         <family>Baekmuk Dotum</family>
  183.                 </prefer>
  184.         </alias>
  185.         <alias>
  186.                 <family>monospace</family>
  187.                 <prefer>
  188.                         <family>Andale Mono</family>
  189.                         <family>Courier New</family>
  190.                         <family>Luxi Mono</family>
  191.                         <family>Nimbus Mono L</family>
  192.                         <family>Simsun</family>
  193.                         <family>Kochi Gothic</family>
  194.                         <family>AR PL KaitiM GB</family>
  195.                         <family>Baekmuk Dotum</family>
  196.                 </prefer>
  197.         </alias>

  198.         <match target="font" >
  199.                 <test compare="more" name="size" qual="any" >
  200.                         <double>8</double>
  201.                 </test>
  202.                 <test compare="less" name="size" qual="any" >
  203.                         <double>14</double>
  204.                 </test>
  205.                 <edit mode="assign" name="antialias" >
  206.                         <bool>false</bool>
  207.                 </edit>
  208.         </match>

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

  220. <!--
  221. Artificial oblique for fonts without an italic or oblique version
  222. -->
  223.         <match target="font">
  224.                 <!-- check to see if the font is roman -->
  225.                 <test name="slant">
  226.                         <const>roman</const>
  227.                 </test>
  228.                 <!-- check to see if the pattern requested non-roman -->
  229.                 <test target="pattern" name="slant" compare="not_eq">
  230.                         <const>roman</const>
  231.                 </test>
  232.                 <!-- multiply the matrix to slant the font -->
  233.                 <edit name="matrix" mode="assign">
  234.                         <times>
  235.                                 <name>matrix</name>
  236.                                         <matrix>
  237.                                                 <double>1</double>
  238.                                                 <double>.2</double>
  239.                                                 <double>0</double>
  240.                                                 <double>1</double>
  241.                                         </matrix>
  242.                         </times>
  243.                 </edit>
  244.                 <edit name="antialias" mode="assign">
  245.                         <bool>flase</bool>
  246.                 </edit>
  247.                 <!-- pretend the font is oblique now -->
  248.                 <edit name="slant" mode="assign">
  249.                         <const>oblique</const>
  250.                 </edit>
  251.         </match>

  252. <!--
  253. Add by firefly@firefly.idv.tw
  254. Artificial bold for fonts without a bold version.
  255. -->
  256.         <match target="font">
  257.                 <!-- check to see if the pattern requested > "medium" -->
  258.                 <test target="pattern" name="weight" compare="more">
  259.                         <const>medium</const>
  260.                 </test>
  261.                 <!-- pretend the font is bold now -->
  262.                 <edit name="weight" mode="assign">
  263.                         <const>bold</const>
  264.                 </edit>
  265.         </match>


  266.         <match target="font">
  267.                 <test target="pattern" name="lang" compare="contains">
  268.                         <string>zh-tw</string>
  269.                         <string>zh-cn</string>
  270.                         <string>ja</string>
  271.                         <string>ko</string>
  272.                 </test>
  273.                 <test name="spacing" compare="eq">
  274.                         <const>mono</const>
  275.                 </test>
  276.                 <edit name="globaladvance" mode="assign">
  277.                         <bool>false</bool>
  278.                 </edit>
  279.         </match>


  280.         <config>
  281. <!--
  282.   These are the default Unicode chars that are expected to be blank
  283.   in fonts.  All other blank chars are assumed to be broken and
  284.   won't appear in the resulting charsets
  285. -->
  286.                 <blank>
  287.                         <int>0x0020</int> <!-- SPACE -->
  288.                         <int>0x00a0</int> <!-- NO-BREAK SPACE -->
  289.                         <int>0x00ad</int> <!-- SOFT HYPHEN -->
  290.                         <int>0x115f</int> <!-- HANGUL CHOSEONG FILLER -->
  291.                         <int>0x1160</int> <!-- HANGUL JUNGSEONG FILLER -->
  292.                         <int>0x1680</int> <!-- OGHAM SPACE MARK -->
  293.                         <int>0x2000</int> <!-- EN QUAD -->
  294.                         <int>0x2001</int> <!-- EM QUAD -->
  295.                         <int>0x2002</int> <!-- EN SPACE -->
  296.                         <int>0x2003</int> <!-- EM SPACE -->
  297.                         <int>0x2004</int> <!-- THREE-PER-EM SPACE -->
  298.                         <int>0x2005</int> <!-- FOUR-PER-EM SPACE -->
  299.                         <int>0x2006</int> <!-- SIX-PER-EM SPACE -->
  300.                         <int>0x2007</int> <!-- FIGURE SPACE -->
  301.                         <int>0x2008</int> <!-- PUNCTUATION SPACE -->
  302.                         <int>0x2009</int> <!-- THIN SPACE -->
  303.                         <int>0x200a</int> <!-- HAIR SPACE -->
  304.                         <int>0x200b</int> <!-- ZERO WIDTH SPACE -->
  305.                         <int>0x200c</int> <!-- ZERO WIDTH NON-JOINER -->
  306.                         <int>0x200d</int> <!-- ZERO WIDTH JOINER -->
  307.                         <int>0x200e</int> <!-- LEFT-TO-RIGHT MARK -->
  308.                         <int>0x200f</int> <!-- RIGHT-TO-LEFT MARK -->
  309.                         <int>0x2028</int> <!-- LINE SEPARATOR -->
  310.                         <int>0x2029</int> <!-- PARAGRAPH SEPARATOR -->
  311.                         <int>0x202a</int> <!-- LEFT-TO-RIGHT EMBEDDING -->
  312.                         <int>0x202b</int> <!-- RIGHT-TO-LEFT EMBEDDING -->
  313.                         <int>0x202c</int> <!-- POP DIRECTIONAL FORMATTING -->
  314.                         <int>0x202d</int> <!-- LEFT-TO-RIGHT OVERRIDE -->
  315.                         <int>0x202e</int> <!-- RIGHT-TO-LEFT OVERRIDE -->
  316.                         <int>0x202f</int> <!-- NARROW NO-BREAK SPACE -->
  317.                         <int>0x205f</int> <!-- MEDIUM MATHEMATICAL SPACE -->
  318.                         <int>0x2060</int> <!-- WORD JOINER -->
  319.                         <int>0x2061</int> <!-- FUNCTION APPLICATION -->
  320.                         <int>0x2062</int> <!-- INVISIBLE TIMES -->
  321.                         <int>0x2063</int> <!-- INVISIBLE SEPARATOR -->
  322.                         <int>0x206A</int> <!-- INHIBIT SYMMETRIC SWAPPING -->
  323.                         <int>0x206B</int> <!-- ACTIVATE SYMMETRIC SWAPPING -->
  324.                         <int>0x206C</int> <!-- INHIBIT ARABIC FORM SHAPING -->
  325.                         <int>0x206D</int> <!-- ACTIVATE ARABIC FORM SHAPING -->
  326.                         <int>0x206E</int> <!-- NATIONAL DIGIT SHAPES -->
  327.                         <int>0x206F</int> <!-- NOMINAL DIGIT SHAPES -->
  328.                         <int>0x3000</int> <!-- IDEOGRAPHIC SPACE -->
  329.                         <int>0x3164</int> <!-- HANGUL FILLER -->
  330.                         <int>0xfeff</int> <!-- ZERO WIDTH NO-BREAK SPACE -->
  331.                         <int>0xffa0</int> <!-- HALFWIDTH HANGUL FILLER -->
  332.                         <int>0xfff9</int> <!-- INTERLINEAR ANNOTATION ANCHOR -->
  333.                         <int>0xfffa</int> <!-- INTERLINEAR ANNOTATION SEPARATOR -->
  334.                         <int>0xfffa</int> <!-- INTERLINEAR ANNOTATION TERMINATOR -->
  335.                 </blank>
  336. <!--
  337.   Rescan configuration every 30 seconds when FcFontSetList is called
  338. -->
  339.                 <rescan>
  340.                         <int>30</int>
  341.                 </rescan>
  342.                 <familyoutput>
  343.                         <!--<const>auto</const>-->
  344.                         <!--<const>englishonly</const>-->
  345.                         <const>any</const>
  346.                 </familyoutput>
  347.         </config>
  348. </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">
  11.                         <const>rgb</const>
  12.                 </edit>
  13.         </match>
  14. --><!--
  15.   Add by Firefly(firefly@firefly.idv.tw)
  16. --> <match target="font" >
  17.   <edit mode="assign" name="embeddedbitmap" >
  18.    <bool>true</bool>
  19.   </edit>
  20. </match>
  21. <!--
  22.   Add by Firefly(firefly@firefly.idv.tw)
  23.   Most of Asian fonts can't explain by freetype2,
  24.   so,if these fonts have dual width(half/full) and monospacing,
  25.   you need to disable globaladvance.
  26. --> <match target="font" >
  27.   <test compare="more_eq" name="spacing" >
  28.    <const>dual</const>
  29.   </test>
  30. <!--
  31.                 <edit mode="assign" name="globaladvance" >
  32.                         <bool>false</bool>
  33.                 </edit>
  34.         --> </match>
  35. <match target="pattern" >
  36.   <test compare="eq" name="family" qual="any" >
  37.    <string>SimSun</string>
  38.   </test>
  39.   <edit mode="prepend_first" binding="strong" name="family" >
  40.    <string>Tahoma</string>
  41.   </edit>
  42. </match>
  43. <!--
  44.   Add by firefly@firefly.idv.tw
  45. --> <match target="font" >
  46.   <test compare="contains" name="lang" >
  47.    <string>zh-cn</string>
  48.    <string>zh-tw</string>
  49.    <string>ja</string>
  50.    <string>ko</string>
  51.   </test>
  52.   <edit mode="assign" name="autohint" >
  53.    <bool>false</bool>
  54.   </edit>
  55.   <edit mode="assign" name="hintstyle" >
  56.    <const>hintslight</const>
  57.   </edit>
  58.   <edit mode="assign" name="usegamma" >
  59.    <if>
  60.     <less>
  61.      <name>pixelsize</name>
  62.      <double>20</double>
  63.     </less>
  64.    </if>
  65.    <bool>true</bool>
  66.    <bool>false</bool>
  67.   </edit>
  68. </match>
  69. <!--
  70.   Add by ***
  71.   Fix size of simsun
  72. --> <match target="font" >
  73.   <test name="family" qual="any" >
  74.    <string>SimSun</string>
  75.   </test>
  76.   <test compare="more_eq" name="pixelsize" >
  77.    <int>9</int>
  78.   </test>
  79.   <test compare="less_eq" name="pixelsize" >
  80.    <int>12</int>
  81.   </test>
  82.   <edit compare="eq" name="pixelsize" >
  83.    <int>12</int>
  84.   </edit>
  85. </match>
  86. <dir>/usr/local/share/fonts</dir>
  87. <dir>/usr/share/fonts</dir>
  88. <dir>/usr/X11R6/lib/X11/fonts</dir>
  89. </fontconfig>
复制代码
回复 支持 反对

使用道具 举报

 楼主| 发表于 2005-3-9 20:53:00 | 显示全部楼层
缺字时,如果选中一下就会显示出来,但是后面又会自己没掉,当firefox里最小字号改成14时,那么就不会出现这种情况,可是那时候页面上的字就比较大,很难看。在local.conf里,俺把simsun同tahoma进行的绑定,似乎直接用宋体的话,就不会出现这些情况,但是那时的英文的显示就会很难看:(。
回复 支持 反对

使用道具 举报

发表于 2005-3-10 08:16:29 | 显示全部楼层
难道用自己编译的nvidia驱动不好吗?
回复 支持 反对

使用道具 举报

 楼主| 发表于 2005-3-10 13:36:56 | 显示全部楼层
关键是公司的机子是82815的显卡啊,当把xorg中的驱动设成i810时,存在跟nv同样的问题。:(
回复 支持 反对

使用道具 举报

发表于 2005-3-10 19:07:06 | 显示全部楼层
以前也遇到过这种问题。

不记得是如何解决的了。

fc-cache -fv试试。

或者中心按照美化的步骤做一次。

PS:你是不是用了东文的GB18030的字体呢?
回复 支持 反对

使用道具 举报

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

本版积分规则

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