LinuxSir.cn,穿越时空的Linuxsir!

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

不知道装什么出错了,运行许多程序报这个错误?

[复制链接]
发表于 2005-5-15 15:02:58 | 显示全部楼层 |阅读模式
Fontconfig error: line 782: junk after document element
Fontconfig error: Cannot load default config file
Lumaqq和adobeReader以及自己写的一些程序都报这个错,
该去那里修改这个错误呢,
请高手指教1
发表于 2005-5-15 23:49:26 | 显示全部楼层
显然是错误修改了fonts.conf所致,人家说第782行有错,你就看看/etc/fonts/fonts.conf。
回复 支持 反对

使用道具 举报

 楼主| 发表于 2005-5-16 10:57:12 | 显示全部楼层
Add by firefly@firefly.idv.tw
   Artificial bold for fonts without a bold version.
      -->
         <match target="font">                                                           这个是782行,该改成什么呢?
                 <!-- check to see if the pattern requested > "medium" -->
                        <test target="pattern" name="weight" compare="more">
                                        <const>medium</const>
                                            </test>
                                                <!-- pretend the font is bold now -->
                                                    <edit name="weight" mode="assign">
                                                                    <const>bold</const>
                                                                        </edit>
                                                                </match>
回复 支持 反对

使用道具 举报

发表于 2005-5-16 11:07:03 | 显示全部楼层
Post by Beiune
Add by firefly@firefly.idv.tw
   Artificial bold for fonts without a bold version.
      -->
         <match target="font">                                                           这个是782行,该改成什么呢?
                 <!-- check to see if the pattern requested > "medium" -->
                        <test target="pattern" name="weight" compare="more">
                                        <const>medium</const>
                                            </test>
                                                <!-- pretend the font is bold now -->
                                                    <edit name="weight" mode="assign">
                                                                    <const>bold</const>
                                                                        </edit>
                                                                </match>


备份好以后,把这段从文件中删掉,再试! ;)
回复 支持 反对

使用道具 举报

 楼主| 发表于 2005-5-16 21:42:16 | 显示全部楼层
好像是好了,
可能是我以前为了美化改了font.conf文件的原因吧
回复 支持 反对

使用道具 举报

发表于 2005-5-16 22:32:25 | 显示全部楼层
好的,下面检查你为什么出错的原因。看看我的“font.conf”中和你应该相同的部分。。。

  1. [color=RED]<!--[/color]
  2. Add by firefly@firefly.idv.tw
  3. Artificial bold for fonts without a bold version.
  4. -->
  5.         <match target="font">
  6.                 <!-- check to see if the pattern requested > "medium" -->
  7.                 <test target="pattern" name="weight" compare="more">
  8.                 <const>medium</const>
  9.                 </test>
  10.                 <!-- pretend the font is bold now -->
  11.                 <edit name="weight" mode="assign">
  12.                         <const>bold</const>
  13.                 </edit>
  14.         </match>
复制代码

是否缺了?
回复 支持 反对

使用道具 举报

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

本版积分规则

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