LinuxSir.cn,穿越时空的Linuxsir!

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

cairo 1.1.10 ebuild + ClearType 补丁,矢量字体边缘更平滑

[复制链接]
发表于 2006-6-20 14:31:31 | 显示全部楼层 |阅读模式
关于ClearType详情见http://en.wikipedia.org/wiki/ClearType
thx to sunmoon1997
这里有图
http://groups.google.com/group/g ... 71#11eda8800ff9c271
如果你没有xgl-coffee overlay, 那么你需要附件里的git.eclass,把它放到你overlay目录下的eclass目录里,比如/usr/local/portage/eclass

如果从cairo 1.1.6开始,你经历过simsun缺字的现象
在装过这个版本之后,请尝试不要再对simsun禁用antialias,也就是说如果之前是false的,请注释掉。
我这里这样做过之后,就不再缺字了
不过,使用libXft的程序,比如qt程序里simsun会发虚,所以这个还不是最终解决办法。

本帖子中包含更多资源

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

x
发表于 2006-6-20 16:04:28 | 显示全部楼层
very good,
received the cleartype's patch from sunmoon last night, but didn't apply them to cairo 1.1.6 which I currently used.


try this tonight
回复 支持 反对

使用道具 举报

发表于 2006-6-20 17:41:15 | 显示全部楼层
  1. $ sudo emerge -uDNpv world
  2. These are the packages that would be merged, in order:
  3. Calculating world dependencies /
  4. !!! ERROR: x11-libs/cairo-1.1.10_alpha20060620 failed.
  5. Call stack:
  6.   ebuild.sh, line 1448:   Called source '/usr/local/portage/chinese-overlay-zhllg/x11-libs/cairo/cairo-1.1.10_alpha20060620.ebuild'
  7.   cairo-1.1.10_alpha20060620.ebuild, line 7:   Called inherit 'git' 'eutils' 'autotools'
  8.   ebuild.sh, line 1183:   Called die
  9. !!! git.eclass could not be found by inherit()
  10. !!! If you need support, post the topmost build error, and the call stack if relevant.
  11. aux_get(): (0) Error in x11-libs/cairo-1.1.10_alpha20060620 ebuild. (1)
  12.                Check for syntax error or corruption in the ebuild. (--debug)
复制代码
回复 支持 反对

使用道具 举报

发表于 2006-6-20 17:48:26 | 显示全部楼层
楼主改得挺快,谢谢!
回复 支持 反对

使用道具 举报

发表于 2006-6-21 01:29:47 | 显示全部楼层
一个较新的git.eclass,显示信息更多。
  1. >>> Unpacking source...
  2. * git update start -->
  3. *    repository: git://git.cairographics.org/git/cairo
  4. Unpacking 25 objects
  5. 100% (25/25) done
  6. * refs/heads/master: fast forward to branch 'master' of git://git.cairographics.org/git/cairo
  7.   from 72e7667ed904b93475d7e4540778c498aa781cdf to bb11980f14560ea16174c6531678b9b7a623f813
  8. src/cairo-output-stream.c  |   48 +++++++++++++++++++++++++++++---------------
  9. src/cairo-pdf-surface.c    |   29 ++++-----------------------
  10. src/cairo-ps-surface.c     |   13 ++----------
  11. test/cairo-test.c          |   15 +++++++++++++-
  12. test/fallback-resolution.c |    2 --
  13. 5 files changed, 52 insertions(+), 55 deletions(-)
  14. *    local clone: /usr/portage/distfiles/git-src/cairo
  15. *    committish: master

  16. >>> Source unpacked.
复制代码

本帖子中包含更多资源

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

x
回复 支持 反对

使用道具 举报

发表于 2006-6-21 03:01:58 | 显示全部楼层
直接 git 下来,patch,再 configure,最后 make && make install,搞定。效果很好,昨天试过了。:)。。
回复 支持 反对

使用道具 举报

 楼主| 发表于 2006-6-21 09:51:12 | 显示全部楼层
不错 不错!
不过如果之前有/usr/portage/distfiles/git-src/cairo的话,要先删掉这个目录
Post by midx
一个较新的git.eclass,显示信息更多。
  1. >>> Unpacking source...
  2. * git update start -->
  3. *    repository: git://git.cairographics.org/git/cairo
  4. Unpacking 25 objects
  5. 100% (25/25) done
  6. * refs/heads/master: fast forward to branch 'master' of git://git.cairographics.org/git/cairo
  7.   from 72e7667ed904b93475d7e4540778c498aa781cdf to bb11980f14560ea16174c6531678b9b7a623f813
  8. src/cairo-output-stream.c  |   48 +++++++++++++++++++++++++++++---------------
  9. src/cairo-pdf-surface.c    |   29 ++++-----------------------
  10. src/cairo-ps-surface.c     |   13 ++----------
  11. test/cairo-test.c          |   15 +++++++++++++-
  12. test/fallback-resolution.c |    2 --
  13. 5 files changed, 52 insertions(+), 55 deletions(-)
  14. *    local clone: /usr/portage/distfiles/git-src/cairo
  15. *    committish: master
  16. >>> Source unpacked.
复制代码
回复 支持 反对

使用道具 举报

发表于 2006-6-21 13:56:37 | 显示全部楼层
似乎只是英文字体有点分别。不过我倒是觉得no_cleartype那张图字体更清晰。
回复 支持 反对

使用道具 举报

 楼主| 发表于 2006-6-21 14:12:34 | 显示全部楼层
中文大家用的都是内嵌点阵了吧
ClearType是针对矢量字体的,英文一般都是矢量的
回复 支持 反对

使用道具 举报

 楼主| 发表于 2006-6-21 16:39:55 | 显示全部楼层
我的缺字问题似乎解决了
看第一贴
回复 支持 反对

使用道具 举报

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

本版积分规则

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