LinuxSir.cn,穿越时空的Linuxsir!

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

Problem with the fonts

[复制链接]
发表于 2006-11-7 19:35:06 | 显示全部楼层 |阅读模式
I've worked for long time but still can't fix the problem:I can't type in chinese!!
My locale is en_US-utf8,I've installed wqy and fcitx also,but when I type,it get wrong codecs.
Here is my /etc/fonts/fonts.conf and the list of /etc/fonts/conf.d/
[php]
*****This is the /etc/fonts/fonts.conf
<?xml version="1.0"?>
<!DOCTYPE fontconfig SYSTEM "fonts.dtd">
<!-- /etc/fonts/fonts.conf file to configure system font access -->
<fontconfig>

<!--
        DO NOT EDIT THIS FILE.
        IT WILL BE REPLACED WHEN FONTCONFIG IS UPDATED.
        LOCAL CHANGES BELONG IN 'local.conf'.

        The intent of this standard configuration file is to be adequate for
        most environments.  If you have a reasonably normal environment and
        have found problems with this configuration, they are probably
        things that others will also want fixed.  Please submit any
        problems to the fontconfig bugzilla system located at fontconfig.org

        Note that the normal 'make install' procedure for fontconfig is to
        replace any existing fonts.conf file with the new version.  Place
        any local customizations in local.conf which this file references.

        Keith Packard
-->

-->

<!-- Font directory list -->

        <dir>/usr/share/fonts</dir>

        <dir>~/.fonts</dir>

<!-- Font cache directory list -->

        <cachedir>/var/cache/fontconfig</cachedir>
        <cachedir>~/.fontconfig</cachedir>

<!--
  Accept deprecated 'mono' alias, replacing it with 'monospace'
-->
        <match target="pattern">
                <test qual="any" name="family">
                        <string>mono</string>
                </test>
                <edit name="family" mode="assign">
                        <string>monospace</string>
                </edit>
                                                         <string>monospace</string>
                </edit>
        </match>

<!--   
  Accept alternate 'sans serif' spelling, replacing it with 'sans-serif'
-->     
        <match target="pattern">
                <test qual="any" name="family">
                        <string>sans serif</string>
                </test>
                <edit name="family" mode="assign">
                        <string>sans-serif</string>
                </edit>
        </match>

<!--   
  Accept deprecated 'sans' alias, replacing it with 'sans-serif'
-->                     
        <match target="pattern">
                <test qual="any" name="family">
                        <string>sans</string>
                </test>
                               <string>sans</string>
                </test>
                <edit name="family" mode="assign">
                        <string>sans-serif</string>
                </edit>
        </match>

<!--
  Load local system customization file
-->
        <include ignore_missing="yes">conf.d</include>

        <config>
<!--
  Rescan configuration every 30 seconds when FcFontSetList is called
-->
                <rescan>
                        <int>30</int>
                </rescan>
        </config>

</fontconfig>
[/php]
******This is the list of /etc/fonts/conf.d
[php]
20-fix-globaladvance.conf     40-generic.conf     65-fonts-persian.conf
20-lohit-gujarati.conf        49-sansserif.conf   65-nonlatin.conf
20-unhint-small-vera.conf     50-user.conf        69-unifont.conf
30-amt-aliases.conf           50-xfonts-wqy.conf  80-delicious.conf
30-replace-bitmap-fonts.conf  51-local.conf       90-synthetic.conf
30-urw-aliases.conf           60-latin.conf
[/php]
 楼主| 发表于 2006-11-7 21:23:23 | 显示全部楼层
问题解决了,多谢irc上的Shan,rock等朋友,原来是/etc/locale.gen的问题,必须把全部zh_CN和en_US前面的注释符#去掉.
回复 支持 反对

使用道具 举报

发表于 2006-11-8 11:20:10 | 显示全部楼层
locale.gen害惨不少人啊。哈哈
用scim好象不需要设置locale.gen的,只是好象……大家莫拍砖……
不过我喜欢fcitx
回复 支持 反对

使用道具 举报

 楼主| 发表于 2006-11-8 12:33:49 | 显示全部楼层
Post by moyan80
locale.gen害惨不少人啊。哈哈
用scim好象不需要设置locale.gen的,只是好象……大家莫拍砖……
不过我喜欢fcitx

是啊,害我郁闷了好久,想字体也装好了,输入法也弄好了为什么就是显不出方块字来,建议版主们把这个问题和解决方法收集到tips中。
回复 支持 反对

使用道具 举报

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

本版积分规则

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