LinuxSir.cn,穿越时空的Linuxsir!

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

麻烦大家帮我看看我到底应该怎么解决我的字体问题好吗?

[复制链接]
发表于 2006-2-19 14:28:01 | 显示全部楼层 |阅读模式
桌面环境KDE,我使用了KDE的字体管理器添加了SinSum字体
但是我在KDE的中心管理器那里设置使用中国--中文的时候,字体十分之难看
下面是我相关的一些配置,还请各位兄弟指点一下我哪里不对了,我个人觉得我是不是没设置好缺省字体啊?但我不知道应该怎么设置,locale.conf里的貌似不起作用啊。
其中locale.conf我是参考这里做的
http://www.linuxfans.org/nuke/mo ... ewtopic&t=55203

  1. gentoo ~ # locale
  2. LANG=zh_CN
  3. LC_CTYPE=zh_CN
  4. LC_NUMERIC=en_US
  5. LC_TIME=en_US
  6. LC_COLLATE=en_US
  7. LC_MONETARY=en_US
  8. LC_MESSAGES=en_US
  9. LC_PAPER=en_US
  10. LC_NAME=en_US
  11. LC_ADDRESS=en_US
  12. LC_TELEPHONE=en_US
  13. LC_MEASUREMENT=en_US
  14. LC_IDENTIFICATION=en_US
  15. LC_ALL=
复制代码



gentoo ~ # cat /etc/fonts/local.conf
  1. <?xml version="1.0"?>
  2. <!DOCTYPE fontconfig SYSTEM "fonts.dtd">
  3. <!-- /etc/fonts/local.conf file for local customizations -->
  4. <fontconfig>

  5. <dir>/usr/local/share/fonts</dir>
  6. <!-- Default fonts -->
  7. <alias>
  8. <family>Times New Roman</family>
  9.   <family>Times</family>
  10.   <family>SimSun</family>
  11. <default><family>serif</family></default>
  12. </alias>
  13. <alias>
  14. <family>Tahoma</family>
  15. <family>SimSun</family>
  16.   <default><family>sans-serif</family></default>
  17.   </alias>
  18. <alias>
  19.   <family>Terminal</family>
  20.   <family>Courier New</family>
  21.   <family>SimSun</family>
  22.    <default><family>monospace</family></default>
  23.   </alias>

  24. <match target="font" >
  25. <test name="family" qual="any" >
  26. <string>Tahoma</string>
  27. <string>Verdana</string>
  28. <string>Arial</string>
  29. <string>Times</string>
  30. <string>Times New Roman</string>
  31. <string>Courier</string>
  32. <string>Courier New</string>
  33. <string>SimSun</string>
  34. </test>
  35. <edit mode="assign" name="antialias" >
  36. <bool>false</bool>
  37. </edit>
  38. </match>

  39. <!-- Enable sub-pixel rasterisaton on LCD displays -->
  40. <match target="font">
  41.   <edit name="rgba" mode="assign">
  42.      <const>rgb</const>
  43.   </edit>
  44. </match>

  45. <match target="font">
  46. <test target="spacing" compare="more_eq">
  47. <const>dual</const>
  48. </test>
  49. <edit name="globaladvance" mode="assign">
  50. <bool>false</bool>
  51. </edit>
  52. </match>

  53. <!--
  54.   Enable sub-pixel rendering
  55.         <match target="font">
  56.                 <edit name="rgba" mode="assign"><const>rgb</const></edit>
  57.         </match>
  58. -->
  59. </fontconfig>
复制代码




  1. gentoo ~ # ls /usr/share/fonts/
  2. 100dpi  arphicfonts    CID        cyrillic  encodings    fonts.cache-1     local  TTF    ukr   wqy-bitmapfont
  3. 75dpi   baekmuk-fonts  corefonts  default   fireflysung  kochi-substitute  misc   Type1  util  zh_CN
  4. gentoo ~ # ls /usr/local/share/fonts/
  5. fonts.cache-1  simsun.ttc
复制代码



gentoo ~ # fc-cache -f -v
由于出现spacing的警告,后来我去掉了这段


  1. 解决使用中文字体时,英文字间距加倍问题:
  2. <match target="font">
  3.    <test target="spacing" compare="more_eq">
  4.       <const>dual</const>
  5.    </test>
  6.    <edit name="globaladvance" mode="assign">
  7.       <bool>false</bool>
  8.    </edit>
  9. </match>
复制代码



  1. Fontconfig warning: "local.conf", line 52: invalid test target "spacing"
  2. fc-cache: "/usr/share/fonts": caching, 0 fonts, 19 dirs
  3. fc-cache: "/usr/share/fonts/CID": caching, 0 fonts, 0 dirs
  4. fc-cache: "/usr/share/fonts/TTF": caching, 23 fonts, 0 dirs
  5. fc-cache: "/usr/share/fonts/ukr": caching, 0 fonts, 0 dirs
  6. fc-cache: "/usr/share/fonts/misc": caching, 55 fonts, 0 dirs
  7. fc-cache: "/usr/share/fonts/util": caching, 0 fonts, 0 dirs
  8. fc-cache: "/usr/share/fonts/default": caching, 0 fonts, 1 dirs
  9. fc-cache: "/usr/share/fonts/default/ghostscript": caching, 35 fonts, 0 dirs
  10. fc-cache: "/usr/share/fonts/75dpi": caching, 398 fonts, 0 dirs
  11. fc-cache: "/usr/share/fonts/kochi-substitute": caching, 2 fonts, 0 dirs
  12. fc-cache: "/usr/share/fonts/Type1": caching, 29 fonts, 0 dirs
  13. fc-cache: "/usr/share/fonts/local": caching, 0 fonts, 0 dirs
  14. fc-cache: "/usr/share/fonts/zh_CN": caching, 2 fonts, 0 dirs
  15. fc-cache: "/usr/share/fonts/encodings": caching, 0 fonts, 1 dirs
  16. fc-cache: "/usr/share/fonts/encodings/large": caching, 0 fonts, 0 dirs
  17. fc-cache: "/usr/share/fonts/arphicfonts": caching, 4 fonts, 0 dirs
  18. fc-cache: "/usr/share/fonts/wqy-bitmapfont": caching, 8 fonts, 0 dirs
  19. fc-cache: "/usr/share/fonts/baekmuk-fonts": caching, 4 fonts, 0 dirs
  20. fc-cache: "/usr/share/fonts/100dpi": caching, 398 fonts, 0 dirs
  21. fc-cache: "/usr/share/fonts/fireflysung": caching, 1 fonts, 0 dirs
  22. fc-cache: "/usr/share/fonts/corefonts": caching, 30 fonts, 0 dirs
  23. fc-cache: "/usr/share/fonts/cyrillic": caching, 0 fonts, 0 dirs
  24. fc-cache: "/usr/X11R6/lib/X11/fonts": caching, 0 fonts, 19 dirs
  25. fc-cache: "/usr/X11R6/lib/X11/fonts/CID": caching, 0 fonts, 0 dirs
  26. fc-cache: "/usr/X11R6/lib/X11/fonts/TTF": caching, 23 fonts, 0 dirs
  27. fc-cache: "/usr/X11R6/lib/X11/fonts/ukr": caching, 0 fonts, 0 dirs
  28. fc-cache: "/usr/X11R6/lib/X11/fonts/misc": caching, 55 fonts, 0 dirs
  29. fc-cache: "/usr/X11R6/lib/X11/fonts/util": caching, 0 fonts, 0 dirs
  30. fc-cache: "/usr/X11R6/lib/X11/fonts/default": caching, 0 fonts, 1 dirs
  31. fc-cache: "/usr/X11R6/lib/X11/fonts/default/ghostscript": caching, 35 fonts, 0 dirs
  32. fc-cache: "/usr/X11R6/lib/X11/fonts/75dpi": caching, 398 fonts, 0 dirs
  33. fc-cache: "/usr/X11R6/lib/X11/fonts/kochi-substitute": caching, 2 fonts, 0 dirs
  34. fc-cache: "/usr/X11R6/lib/X11/fonts/Type1": caching, 29 fonts, 0 dirs
  35. fc-cache: "/usr/X11R6/lib/X11/fonts/local": caching, 0 fonts, 0 dirs
  36. fc-cache: "/usr/X11R6/lib/X11/fonts/zh_CN": caching, 2 fonts, 0 dirs
  37. fc-cache: "/usr/X11R6/lib/X11/fonts/encodings": caching, 0 fonts, 1 dirs
  38. fc-cache: "/usr/X11R6/lib/X11/fonts/encodings/large": caching, 0 fonts, 0 dirs
  39. fc-cache: "/usr/X11R6/lib/X11/fonts/arphicfonts": caching, 4 fonts, 0 dirs
  40. fc-cache: "/usr/X11R6/lib/X11/fonts/wqy-bitmapfont": caching, 8 fonts, 0 dirs
  41. fc-cache: "/usr/X11R6/lib/X11/fonts/baekmuk-fonts": caching, 4 fonts, 0 dirs
  42. fc-cache: "/usr/X11R6/lib/X11/fonts/100dpi": caching, 398 fonts, 0 dirs
  43. fc-cache: "/usr/X11R6/lib/X11/fonts/fireflysung": caching, 1 fonts, 0 dirs
  44. fc-cache: "/usr/X11R6/lib/X11/fonts/corefonts": caching, 30 fonts, 0 dirs
  45. fc-cache: "/usr/X11R6/lib/X11/fonts/cyrillic": caching, 0 fonts, 0 dirs
  46. fc-cache: "/usr/local/share/fonts": caching, 2 fonts, 0 dirs
  47. fc-cache: "/usr/X11R6/lib/X11/fonts/75dpi": caching, 398 fonts, 0 dirs
  48. fc-cache: "/usr/X11R6/lib/X11/fonts/100dpi": caching, 398 fonts, 0 dirs
  49. fc-cache: "/root/.fonts": skipping, no such directory
  50. fc-cache: succeeded
复制代码


我现在没辙了,还请各位前辈指点一二啊,多谢了!

本帖子中包含更多资源

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

x
 楼主| 发表于 2006-2-19 14:46:25 | 显示全部楼层
搞定了
可能是我饿昏了,在KDE中心管理器那里找半天没找到字体设置的地方,只找到添加字体的地方,刚才吃了个饭就找到了,呵呵。

不过还有一个问题,就是使用了中文字体的时候,英文显示间隔十分之大,我参考linuxfans那的文章做的会有警告,后来我还是加上了
解决使用中文字体时,英文字间距加倍问题:
<match target="font">
   <test target="spacing" compare="more_eq">
      <const>dual</const>
   </test>
   <edit name="globaladvance" mode="assign">
      <bool>false</bool>
   </edit>
</match>

还是间隔太大了。。。。不过HAPPY一下,字体好PL,哈哈
回复 支持 反对

使用道具 举报

 楼主| 发表于 2006-2-19 15:22:40 | 显示全部楼层
后来我把windows下的mingliu字体也cp过去了,在KDE的字体选择那里多了一个pmingliu的字体,我选了一个12号大小的,英文的间隔还可以,但是就是中文的字体又不怎么好看了,勉强可以用着,期待高手指点。。。。
回复 支持 反对

使用道具 举报

发表于 2006-2-19 18:13:11 | 显示全部楼层
Post by 包子
搞定了
可能是我饿昏了,在KDE中心管理器那里找半天没找到字体设置的地方,只找到添加字体的地方,刚才吃了个饭就找到了,呵呵。

不过还有一个问题,就是使用了中文字体的时候,英文显示间隔十分之大,我参考linuxfans那的文章做的会有警告,后来我还是加上了


还是间隔太大了。。。。不过HAPPY一下,字体好PL,哈哈

http://www.linuxsir.cn/bbs/showt ... &highlight=Font
回复 支持 反对

使用道具 举报

发表于 2006-2-20 07:50:17 | 显示全部楼层
应该是字体替换排序的时候把日文字体放在前面了。我的local.conf是从http://www.linuxsir.cn/main/?q=node/94上拷贝过来的,并且装了media-fonts/cjkuni-fonts,显示效果挺好的。
回复 支持 反对

使用道具 举报

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

本版积分规则

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