LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
楼主: lonecat

debian中文字体包

[复制链接]
发表于 2004-11-20 02:12:20 | 显示全部楼层
最初由 deng805 发表
我也是,全部变成框框了?
楼主谢谢你的东西,可怎么解决啊


大概是黑体的问题吧, 试试我用的: ~/.fonts.conf


  1. <?xml version="1.0"?>
  2. <!DOCTYPE fontconfig SYSTEM "/etc/fonts/fonts.dtd">
  3. <fontconfig>
  4.     <alias>
  5.         <family>serif</family>
  6.         <prefer>
  7.             <family>SimSun</family>
  8.         </prefer>
  9.     </alias>
  10.     <alias>
  11.         <family>sans-serif</family>
  12.         <prefer>
  13.             <family>SimSun</family>
  14.         </prefer>
  15.     </alias>
  16.     <alias>
  17.         <family>monospace</family>
  18.         <prefer>
  19.             <family>SimSun</family>
  20.         </prefer>
  21.     </alias>
  22.     <match target="font" >
  23.         <test name="family" >
  24.             <string>SimSun</string>
  25.         </test>
  26.         <edit name="antialias" >
  27.             <bool>true</bool>
  28.         </edit>
  29.         <edit name="hinting" >
  30.             <bool>true</bool>
  31.         </edit>
  32.         <edit name="autohint" >
  33.             <bool>false</bool>
  34.         </edit>
  35.     </match>
  36.     <match target="font" >
  37.         <test compare="eq" name="family" >
  38.             <string>SimSun</string>
  39.         </test>
  40.         <test compare="more_eq" name="pixelsize" >
  41.             <int>12</int>
  42.         </test>
  43.         <test compare="less_eq" name="pixelsize" >
  44.             <int>16</int>
  45.         </test>       </test>
  46.         <test compare="less_eq" name="pixelsize" >
  47.             <int>16</int>
  48.         </test>
  49.         <edit mode="assign" name="antialias" >
  50.             <bool>false</bool>
  51.         </edit>
  52.     </match>
  53.     <match target="font" >
  54.         <test compare="eq" name="family" >
  55.             <string>SimSun</string>
  56.         </test>
  57.         <test compare="more_eq" name="size" >
  58.             <int>12</int>
  59.         </test>
  60.         <test compare="less_eq" name="size" >
  61.             <int>16</int>
  62.         </test>
  63.         <edit mode="assign" name="antialias" >
  64.             <bool>false</bool>
  65.         </edit>
  66.     </match>
  67.     <match target="font" >
  68.         <test name="family" >
  69.             <string>NSimSun</string>
  70.         </test>
  71.         <edit name="antialias" >
  72.             <bool>true</bool>
  73.         </edit>
  74.         <edit name="hinting" >
  75.             <bool>true</bool>
  76.         </edit>
  77.         <edit name="autohint" >
  78.             <bool>false</bool>
  79.         </edit>
  80.         <edit name="globaladvance" >
  81.             <bool>false</bool>
  82.         </edit>
  83.     </match>
  84.     <match target="font" >
  85.         <test compare="eq" name="family" >
  86.             <string>NSimSun</string>
  87.         </test>
  88.         <test compare="more_eq" name="pixelsize" >  <int>12</int>
  89.         </test>
  90.         <test compare="less_eq" name="pixelsize" >
  91.             <int>16</int>
  92.         </test>
  93.         <edit mode="assign" name="antialias" >
  94.             <bool>false</bool>
  95.         </edit>
  96.     </match>
  97.     <match target="font" >
  98.         <test compare="eq" name="family" >
  99.             <string>NSimSun</string>
  100.         </test>
  101.         <test compare="more_eq" name="size" >
  102.             <int>12</int>
  103.         </test>
  104.         <test compare="less_eq" name="size" >
  105.             <int>16</int>
  106.         </test>
  107.         <edit mode="assign" name="antialias" >
  108.             <bool>false</bool>
  109.         </edit>
  110.     </match>
  111.     <dir>~/.fonts</dir>
  112. </fontconfig>
复制代码
发表于 2004-11-21 14:27:27 | 显示全部楼层
谢谢大大,虽然fcitx乱码,再想法子吧。
发表于 2004-11-21 14:42:06 | 显示全部楼层
的确,把fcitx的.configure改成simsun就行了
xmms也能自动显中文了,真棒!
谢了,兄弟!
发表于 2004-11-21 21:24:17 | 显示全部楼层
很漂亮了,谢谢!
但我的菜单变成繁体呢,不知何故。
能不能改回来呢?
发表于 2004-11-21 23:13:12 | 显示全部楼层
炒的这么厉害,还不如做点实事呢。FangQ组织的开源的字体项目正在进行,却人手寥寥
发表于 2004-11-24 09:39:17 | 显示全部楼层
我的Emacs中的中文变成隶书了,怎么改成Simsun呀
发表于 2004-11-24 15:10:22 | 显示全部楼层
最初由 yangtsecn 发表
我的Emacs中的中文变成隶书了,怎么改成Simsun呀

我的xmms也是。
发表于 2004-11-25 12:39:53 | 显示全部楼层
最初由 yangtsecn 发表
我的Emacs中的中文变成隶书了,怎么改成Simsun呀

搞掂了,兄弟:
将/etc/environment的
LANG=zh_CN改为:
LANG=zh_CN.GB2312
即可。
其它不用改。
发表于 2004-12-7 20:56:40 | 显示全部楼层
安装后用xfontsel命令查看字体的时候,其它几个字体都没有问题,为什么一选Simsun就出现下面的错误呢?
~# xfontsel
X Error of failed request:  BadValue (integer parameter out of range for operation)
  Major opcode of failed request:  45 (X_OpenFont)
  Value in failed request:  0x240005b
  Serial number of failed request:  1190
  Current serial number in output stream:  1191
发表于 2004-12-7 20:59:11 | 显示全部楼层
安装后用xfontsel命令查看字体的时候,其它几个字体都没有问题,为什么一选Simsun就出现下面的错误呢?
~# xfontsel
X Error of failed request:  BadValue (integer parameter out of range for operation)
  Major opcode of failed request:  45 (X_OpenFont)
  Value in failed request:  0x240005b
  Serial number of failed request:  1190
  Current serial number in output stream:  1191
您需要登录后才可以回帖 登录 | 注册

本版积分规则

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