+ -
当前位置:首页 → 问答吧 → 不知道装什么出错了,运行许多程序报这个错误?

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

时间:2005-05-15

来源:互联网

Fontconfig error: line 782: junk after document element
Fontconfig error: Cannot load default config file
Lumaqq和adobeReader以及自己写的一些程序都报这个错,
该去那里修改这个错误呢,
请高手指教1

作者: Beiune   发布时间: 2005-05-15

显然是错误修改了fonts.conf所致,人家说第782行有错,你就看看/etc/fonts/fonts.conf。

作者: fundawang   发布时间: 2005-05-16

Add by [email protected]
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>

作者: Beiune   发布时间: 2005-05-16

引用:
作者: Beiune
Add by [email protected]
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>
备份好以后,把这段从文件中删掉,再试!

作者: csyfek   发布时间: 2005-05-16

好像是好了,
可能是我以前为了美化改了font.conf文件的原因吧

作者: Beiune   发布时间: 2005-05-17

好的,下面检查你为什么出错的原因。看看我的“font.conf”中和你应该相同的部分。。。
代码:
<!--
 Add by [email protected]
 Artificial bold for fonts without a bold version.
-->
 <match target="font">
 <!-- 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>
是否缺了?

作者: csyfek   发布时间: 2005-05-17