桌面环境KDE,我使用了KDE的字体管理器添加了SinSum字体
但是我在KDE的中心管理器那里设置使用中国--中文的时候,字体十分之难看
下面是我相关的一些配置,还请各位兄弟指点一下我哪里不对了,我个人觉得我是不是没设置好缺省字体啊?但我不知道应该怎么设置,locale.conf里的貌似不起作用啊。
其中locale.conf我是参考这里做的
http://www.linuxfans.org/nuke/mo ... ewtopic&t=55203
- gentoo ~ # locale
- LANG=zh_CN
- LC_CTYPE=zh_CN
- LC_NUMERIC=en_US
- LC_TIME=en_US
- LC_COLLATE=en_US
- LC_MONETARY=en_US
- LC_MESSAGES=en_US
- LC_PAPER=en_US
- LC_NAME=en_US
- LC_ADDRESS=en_US
- LC_TELEPHONE=en_US
- LC_MEASUREMENT=en_US
- LC_IDENTIFICATION=en_US
- LC_ALL=
复制代码
gentoo ~ # cat /etc/fonts/local.conf
- <?xml version="1.0"?>
- <!DOCTYPE fontconfig SYSTEM "fonts.dtd">
- <!-- /etc/fonts/local.conf file for local customizations -->
- <fontconfig>
- <dir>/usr/local/share/fonts</dir>
- <!-- Default fonts -->
- <alias>
- <family>Times New Roman</family>
- <family>Times</family>
- <family>SimSun</family>
- <default><family>serif</family></default>
- </alias>
- <alias>
- <family>Tahoma</family>
- <family>SimSun</family>
- <default><family>sans-serif</family></default>
- </alias>
- <alias>
- <family>Terminal</family>
- <family>Courier New</family>
- <family>SimSun</family>
- <default><family>monospace</family></default>
- </alias>
- <match target="font" >
- <test name="family" qual="any" >
- <string>Tahoma</string>
- <string>Verdana</string>
- <string>Arial</string>
- <string>Times</string>
- <string>Times New Roman</string>
- <string>Courier</string>
- <string>Courier New</string>
- <string>SimSun</string>
- </test>
- <edit mode="assign" name="antialias" >
- <bool>false</bool>
- </edit>
- </match>
- <!-- Enable sub-pixel rasterisaton on LCD displays -->
- <match target="font">
- <edit name="rgba" mode="assign">
- <const>rgb</const>
- </edit>
- </match>
- <match target="font">
- <test target="spacing" compare="more_eq">
- <const>dual</const>
- </test>
- <edit name="globaladvance" mode="assign">
- <bool>false</bool>
- </edit>
- </match>
- <!--
- Enable sub-pixel rendering
- <match target="font">
- <edit name="rgba" mode="assign"><const>rgb</const></edit>
- </match>
- -->
- </fontconfig>
复制代码
- gentoo ~ # ls /usr/share/fonts/
- 100dpi arphicfonts CID cyrillic encodings fonts.cache-1 local TTF ukr wqy-bitmapfont
- 75dpi baekmuk-fonts corefonts default fireflysung kochi-substitute misc Type1 util zh_CN
- gentoo ~ # ls /usr/local/share/fonts/
- fonts.cache-1 simsun.ttc
复制代码
gentoo ~ # fc-cache -f -v
由于出现spacing的警告,后来我去掉了这段
- 解决使用中文字体时,英文字间距加倍问题:
- <match target="font">
- <test target="spacing" compare="more_eq">
- <const>dual</const>
- </test>
- <edit name="globaladvance" mode="assign">
- <bool>false</bool>
- </edit>
- </match>
复制代码
- Fontconfig warning: "local.conf", line 52: invalid test target "spacing"
- fc-cache: "/usr/share/fonts": caching, 0 fonts, 19 dirs
- fc-cache: "/usr/share/fonts/CID": caching, 0 fonts, 0 dirs
- fc-cache: "/usr/share/fonts/TTF": caching, 23 fonts, 0 dirs
- fc-cache: "/usr/share/fonts/ukr": caching, 0 fonts, 0 dirs
- fc-cache: "/usr/share/fonts/misc": caching, 55 fonts, 0 dirs
- fc-cache: "/usr/share/fonts/util": caching, 0 fonts, 0 dirs
- fc-cache: "/usr/share/fonts/default": caching, 0 fonts, 1 dirs
- fc-cache: "/usr/share/fonts/default/ghostscript": caching, 35 fonts, 0 dirs
- fc-cache: "/usr/share/fonts/75dpi": caching, 398 fonts, 0 dirs
- fc-cache: "/usr/share/fonts/kochi-substitute": caching, 2 fonts, 0 dirs
- fc-cache: "/usr/share/fonts/Type1": caching, 29 fonts, 0 dirs
- fc-cache: "/usr/share/fonts/local": caching, 0 fonts, 0 dirs
- fc-cache: "/usr/share/fonts/zh_CN": caching, 2 fonts, 0 dirs
- fc-cache: "/usr/share/fonts/encodings": caching, 0 fonts, 1 dirs
- fc-cache: "/usr/share/fonts/encodings/large": caching, 0 fonts, 0 dirs
- fc-cache: "/usr/share/fonts/arphicfonts": caching, 4 fonts, 0 dirs
- fc-cache: "/usr/share/fonts/wqy-bitmapfont": caching, 8 fonts, 0 dirs
- fc-cache: "/usr/share/fonts/baekmuk-fonts": caching, 4 fonts, 0 dirs
- fc-cache: "/usr/share/fonts/100dpi": caching, 398 fonts, 0 dirs
- fc-cache: "/usr/share/fonts/fireflysung": caching, 1 fonts, 0 dirs
- fc-cache: "/usr/share/fonts/corefonts": caching, 30 fonts, 0 dirs
- fc-cache: "/usr/share/fonts/cyrillic": caching, 0 fonts, 0 dirs
- fc-cache: "/usr/X11R6/lib/X11/fonts": caching, 0 fonts, 19 dirs
- fc-cache: "/usr/X11R6/lib/X11/fonts/CID": caching, 0 fonts, 0 dirs
- fc-cache: "/usr/X11R6/lib/X11/fonts/TTF": caching, 23 fonts, 0 dirs
- fc-cache: "/usr/X11R6/lib/X11/fonts/ukr": caching, 0 fonts, 0 dirs
- fc-cache: "/usr/X11R6/lib/X11/fonts/misc": caching, 55 fonts, 0 dirs
- fc-cache: "/usr/X11R6/lib/X11/fonts/util": caching, 0 fonts, 0 dirs
- fc-cache: "/usr/X11R6/lib/X11/fonts/default": caching, 0 fonts, 1 dirs
- fc-cache: "/usr/X11R6/lib/X11/fonts/default/ghostscript": caching, 35 fonts, 0 dirs
- fc-cache: "/usr/X11R6/lib/X11/fonts/75dpi": caching, 398 fonts, 0 dirs
- fc-cache: "/usr/X11R6/lib/X11/fonts/kochi-substitute": caching, 2 fonts, 0 dirs
- fc-cache: "/usr/X11R6/lib/X11/fonts/Type1": caching, 29 fonts, 0 dirs
- fc-cache: "/usr/X11R6/lib/X11/fonts/local": caching, 0 fonts, 0 dirs
- fc-cache: "/usr/X11R6/lib/X11/fonts/zh_CN": caching, 2 fonts, 0 dirs
- fc-cache: "/usr/X11R6/lib/X11/fonts/encodings": caching, 0 fonts, 1 dirs
- fc-cache: "/usr/X11R6/lib/X11/fonts/encodings/large": caching, 0 fonts, 0 dirs
- fc-cache: "/usr/X11R6/lib/X11/fonts/arphicfonts": caching, 4 fonts, 0 dirs
- fc-cache: "/usr/X11R6/lib/X11/fonts/wqy-bitmapfont": caching, 8 fonts, 0 dirs
- fc-cache: "/usr/X11R6/lib/X11/fonts/baekmuk-fonts": caching, 4 fonts, 0 dirs
- fc-cache: "/usr/X11R6/lib/X11/fonts/100dpi": caching, 398 fonts, 0 dirs
- fc-cache: "/usr/X11R6/lib/X11/fonts/fireflysung": caching, 1 fonts, 0 dirs
- fc-cache: "/usr/X11R6/lib/X11/fonts/corefonts": caching, 30 fonts, 0 dirs
- fc-cache: "/usr/X11R6/lib/X11/fonts/cyrillic": caching, 0 fonts, 0 dirs
- fc-cache: "/usr/local/share/fonts": caching, 2 fonts, 0 dirs
- fc-cache: "/usr/X11R6/lib/X11/fonts/75dpi": caching, 398 fonts, 0 dirs
- fc-cache: "/usr/X11R6/lib/X11/fonts/100dpi": caching, 398 fonts, 0 dirs
- fc-cache: "/root/.fonts": skipping, no such directory
- fc-cache: succeeded
复制代码
我现在没辙了,还请各位前辈指点一二啊,多谢了! |