LinuxSir.cn,穿越时空的Linuxsir!

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

archlinux上面编译libxft2实现粗体大家谁做到了?

[复制链接]
发表于 2005-9-16 09:53:21 | 显示全部楼层 |阅读模式
能指导一下么?
libxft2是包含再xorg里面的,不知道怎么搞。。
发表于 2005-9-16 09:55:18 | 显示全部楼层
用带粗体的字体不就行啦。。。不在乎这么几兆吧
回复 支持 反对

使用道具 举报

 楼主| 发表于 2005-9-16 11:03:10 | 显示全部楼层
嗯,可是显示不好看。现在好了,用了文泉驿的字体。
回复 支持 反对

使用道具 举报

发表于 2005-9-16 15:04:19 | 显示全部楼层
除了firefox,其他的程序有粗体,估计是Arch 的firefox没有加入freetype的支持。粗体是freetype模拟的。
回复 支持 反对

使用道具 举报

发表于 2005-9-16 15:08:12 | 显示全部楼层
我都不用freetype好久了。。。一点问题都没有
回复 支持 反对

使用道具 举报

 楼主| 发表于 2005-9-16 20:46:10 | 显示全部楼层
Post by zerolin
除了firefox,其他的程序有粗体,估计是Arch 的firefox没有加入freetype的支持。粗体是freetype模拟的。



默认情况下的么?不需要额外设置就有?
回复 支持 反对

使用道具 举报

发表于 2005-9-17 09:10:43 | 显示全部楼层
YES...
回复 支持 反对

使用道具 举报

发表于 2005-9-18 14:29:22 | 显示全部楼层
Post by zerolin
除了firefox,其他的程序有粗体,估计是Arch 的firefox没有加入freetype的支持。粗体是freetype模拟的。

我已经说过了,firefox能不能出粗体,取决于它是不是一个pango/gtk程序,只要cairo可以出粗体,pango的firefox就一定可以出。xul的firefox肯定不行。
回复 支持 反对

使用道具 举报

发表于 2005-9-18 15:26:48 | 显示全部楼层
Arch 的firefox默认有 pango和gtk2支持阿,这是Arch firfox 的默认编译参数


  1. # load defaults from src tarball
  2. . $topsrcdir/browser/config/mozconfig
  3. # add our own options
  4. ac_add_options --with-system-nspr
  5. ac_add_options --with-system-jpeg
  6. ac_add_options --with-system-zlib
  7. ac_add_options --with-system-png
  8. ac_add_options --with-system-mng
  9. ac_add_options --with-pthreads
  10. ac_add_options --disable-tests
  11. ac_add_options --disable-debug
  12. ac_add_options --disable-installer
  13. ac_add_options --enable-optimize="#CFLAGS#"
  14. ac_add_options --enable-xft
  15. ac_add_options --disable-xinerama
  16. ac_add_options --enable-default-toolkit=gtk2
  17. ac_add_options --enable-official-branding
  18. ac_add_options --disable-xprint
  19. ac_add_options --enable-strip
  20. ac_add_options --enable-pango
  21. ac_add_options --prefix=/opt/mozilla
  22. ac_add_options --with-default-mozilla-five-home=/opt/mozilla/lib/firefox
  23. ac_add_options --enable-crypto
  24. ac_add_options --enable-extensions=cookie,xml-rpc,xmlextras,pref,transformiix,universalchardet,webservices,inspector,negotiateauth,typeaheadfind
  25. ac_add_options --enable-single-profile
  26. ac_add_options --disable-profilesharing
  27. ac_add_options --disable-gnomevfs

复制代码
回复 支持 反对

使用道具 举报

发表于 2005-9-18 18:18:02 | 显示全部楼层
光有autoconf的参数是不够的,重要的是要让firefox通过pango/cairo来取字体、画字体,而不是通过xft。
回复 支持 反对

使用道具 举报

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

本版积分规则

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