LinuxSir.cn,穿越时空的Linuxsir!

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

如何防止overlay里的包被更新?

[复制链接]
发表于 2006-3-13 14:59:07 | 显示全部楼层 |阅读模式
xgl和中文美化的overlay里都有cairo,xgl里的比中文美化里的新,如何使中文美化里的cairo不会被升级替换掉?
发表于 2006-3-13 15:58:39 | 显示全部楼层
quickpkg一下
然后再装一遍就好了

或者还有一个方法
其实我那个cario的补丁不是必需的
只要fonts.conf里对中文字体小字号(比如小于18)关闭antialias就行了
这也是我现在采取的方法

补丁的作用是强制使用点阵字体,省却了配置fonts.conf的麻烦
回复 支持 反对

使用道具 举报

 楼主| 发表于 2006-3-13 16:09:05 | 显示全部楼层
只要fonts.conf里对中文字体小字号(比如小于18)关闭antialias就行了

这个要怎么做?
回复 支持 反对

使用道具 举报

发表于 2006-3-13 17:07:42 | 显示全部楼层
  1. <!-- 關閉 8到17號字體的AA -->
  2.         <match target="font" >
  3.                 <test compare="contains" name="lang" >
  4.                         <string>zh-cn</string>
  5.                         <string>zh-tw</string>
  6.                         <string>ja</string>
  7.                         <string>ko</string>
  8.                 </test>
  9.                 <test compare="more_eq" name="pixelsize" qual="any" >
  10.                         <double>8</double>
  11.                 </test>
  12.                 <test compare="less_eq" name="pixelsize" qual="any" >
  13.                         <double>17</double>
  14.                 </test>
  15.                 <edit mode="assign" name="antialias" >
  16.                         <bool>false</bool>
  17.                 </edit>
  18.         </match>
  19.         <!--設定中文最小字號,使得小字的中文美觀-->
  20.         <match target="font" >
  21.                 <test name="family" qual="any" >
  22.                         <string>SimSun</string>
  23.                         <string>NSimSun</string>
  24.                         <string>SimHei</string>
  25.                         <string>FangSong_GB2312</string>
  26.                         <string>KaiTi_GB2312</string>
  27.                 </test>
  28.                 <test compare="more_eq" name="pixelsize" >
  29.                         <int>8</int>
  30.                 </test>
  31.                 <test compare="less_eq" name="pixelsize" >
  32.                         <int>12</int>
  33.                 </test>
  34.                 <edit compare="eq" name="pixelsize" >
  35.                         <int>12</int>
  36.                 </edit>
  37.         </match>
复制代码
回复 支持 反对

使用道具 举报

发表于 2006-3-13 20:24:12 | 显示全部楼层
Just mask it, for example I don't want the kernel to be upgraded. I put

>sys-kerenls/gentoo-sources-2.6.15-r1

into /etc/portage/package.mask
回复 支持 反对

使用道具 举报

发表于 2006-3-13 22:50:11 | 显示全部楼层
楼上的不错.
回复 支持 反对

使用道具 举报

 楼主| 发表于 2006-3-14 10:28:00 | 显示全部楼层
往font.conf里加入这一段后
  1.         <match target="font" >
  2.                 <test compare="contains" name="lang" >
  3.                         <string>zh-cn</string>
  4.                         <string>zh-tw</string>
  5.                         <string>ja</string>
  6.                         <string>ko</string>
  7.                 </test>
  8.                 <test compare="more_eq" name="pixelsize" qual="any" >
  9.                         <double>8</double>
  10.                 </test>
  11.                 <test compare="less_eq" name="pixelsize" qual="any" >
  12.                         <double>17</double>
  13.                 </test>
  14.                 <edit mode="assign" name="antialias" >
  15.                         <bool>false</bool>
  16.                 </edit>
  17.         </match>
复制代码
,thunderbird非常容易崩溃,把这一段注释掉后就正常了,但字体难看,如果要用这一段,就要将fontconfig换回原来的。
回复 支持 反对

使用道具 举报

 楼主| 发表于 2006-3-14 10:43:48 | 显示全部楼层
thunderbird好了,刚才发现gedit很不稳定
错误信息:
The program 'gedit' received an X Window System error.
This probably reflects a bug in the program.
The error was 'BadLength (poly request too large or internal Xlib length erro'.
  (Details: serial 16654 error_code 16 request_code 156 minor_code 20)
  (Note to programmers: normally, X errors are reported asynchronously;
   that is, you will receive the error a while after causing it.
   To debug your program, run it with the --sync command line
   option to change this behavior. You can then get a meaningful
   backtrace from your debugger if you break on the gdk_x_error() function.)
回复 支持 反对

使用道具 举报

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

本版积分规则

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