LinuxSir.cn,穿越时空的Linuxsir!

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

lcd_filter code在cairo-1.8.0里又被去除了

[复制链接]
发表于 2008-10-2 09:38:16 | 显示全部楼层 |阅读模式
这里是commit页: http://gitweb.freedesktop.org/?p ... 30d1b04d08a5aba9bee
从发布日志看,Carl Worth的态度有些……“摇摆”。
不过按照Gentoo Forums里octoploid提供的方法可以生成revert patch。
Post by "octoploid"
[quote="aliquid"]From cairo 1.8.0 release announcement:
[quote]Note also that the code that had been in cairo 1.7.x calling into
freetype's optional lcd_filter function was removed from cairo before
the 1.8.0 release. We do expect this code to come back in some form in
the future.

Sad, but no lcd font rendering for now.

Edit:
Here's a reason:
Remove all lcd_filter code.
We reverted the public API for setting lcd_filter font options back in 1b42bc8033bc , but we had left the implementation which would examine fontconfig and Xft properties for the option, and which would call into freetype for subpixel glyph rasterization. However, I recently realized, (and the test suite had been trying to tell me for a while), that this approach would cause a regression for users who were previously using sub-pixel text, but without sub-pixel rendering built directly into freetype. That's not acceptable, so all the code is coming out for now.
[/quote]

Well, I just reverted the revert and cairo 1.8.0 is working fine here.

(this is what I did:

  1. git clone git://anongit.freedesktop.org/git/cairo
  2. cd cairo
  3. git revert 5d887ad5dca5af0f8216830d1b04d08a5aba9bee
  4. git format-patch -k -m --stdout origin > cairo.patch
复制代码

And than added "epatch cairo.patch" to the cairo-1.8.0.ebuild...)[/quote]

本帖子中包含更多资源

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

x
发表于 2008-10-2 10:51:24 | 显示全部楼层
是比较郁闷,没有lcd-filter在笔记本上很难看

不过还好提供了反向diff,可以自己打上lcd-filter补丁
回复 支持 反对

使用道具 举报

 楼主| 发表于 2008-10-2 13:15:41 | 显示全部楼层
1.7.x的lcd_filter效果不甚理想,还是改改ubuntu针对1.6.4的那个patch比较实在!

***************************
对不起,1.7.x的lcd_filter默认使用lcdlegacy,应该说还有个开关,这些细节,ubuntu的fontconfig_2.6.0-1ubuntu4.diff早已做了……
gentoo-china-overlay里fontconfig的ubuntu patch稍微旧了一些。

***************************
又,
fontconfig (2.6.0-1ubuntu3),解决了
"/etc/fonts/conf.d/53-monospace-lcd-filter.conf", line 17: invalid constant
的问题

fontconfig (2.6.0-1ubuntu4),添加了ubuntu_lcddefault.patch以打开lcddefault

该楼原附件已删除,另添加从fontconfig 2.6.0-1ubuntu4分离出的ubuntu补丁与顶楼附件的cairo-1.8.0-lcd-filter-revert-patch配合应用。别忘了用eselect fontconfig list检查“11-lcd-filter-lcddefault.conf“是否选中。

本帖子中包含更多资源

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

x
回复 支持 反对

使用道具 举报

发表于 2008-10-4 22:59:31 | 显示全部楼层
sorry,现在在家里,没有宽带,得等7号回到学校才能跟进patch,如果没有其他兄弟跟进的话,你就得耐心等等
回复 支持 反对

使用道具 举报

发表于 2008-10-4 23:44:36 | 显示全部楼层
使用了,好像感觉差不多? 还是我原来就效果一般啊 ?呵呵
回复 支持 反对

使用道具 举报

发表于 2008-10-5 02:44:00 | 显示全部楼层
使用lcd补丁1.80没有以前好看。给cairo打ubuntu补丁是不是fontconfig,freetype2,libxft也要打

既然大家更新了cairo,有没有发觉很多地方空白增大了?如右键菜单,如thunar左面板。仅仅是中文locale下有这个问题。英文环境下没有~
回复 支持 反对

使用道具 举报

发表于 2008-10-5 21:00:13 | 显示全部楼层
感觉完全没有cairo1.6的时候效果好了。现在颜色非常深。原来的打了补丁之后不仔细看字感觉没有什么颜色,现在稍微看以下就发现字体边缘花花绿绿。不过没打补丁更夸张
回复 支持 反对

使用道具 举报

发表于 2008-10-7 14:57:43 | 显示全部楼层
gentoo-china overlay中已更新了。
因为fontconfig和cairo都更新了,建议你两个一起更新一下。
回复 支持 反对

使用道具 举报

发表于 2008-10-7 17:36:58 | 显示全部楼层
Post by acevery;1891355
gentoo-china overlay中已更新了。
因为fontconfig和cairo都更新了,建议你两个一起更新一下。


两个都更新了一下,效果不错,和1.6.4的基本一样,没多大区别。
回复 支持 反对

使用道具 举报

发表于 2008-10-7 22:09:39 | 显示全部楼层
Post by oceanboo;1891420
两个都更新了一下,效果不错,和1.6.4的基本一样,没多大区别。


嗯,我也没有发现什么改变
回复 支持 反对

使用道具 举报

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

本版积分规则

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