FVWM 多国文字渲染补丁

[撰文/kemean]

FVWM 虽支持 Xft2 & Fontconfig,却无法支持对多语文字采用多种字体来渲染,单一字体渲染往往不尽人意,不是中文乱码就是英文非常难看。因此,我写了这个补丁,实现了类似 Pango 的国际化文本渲染功能。

FVWM

打上这个补丁之后,FVWM 便跟其它 GTK 程序一样,只需设置为 Sans 即可,它会根据具体的文字来匹配合适的字体,完全遵循 Fontconfig,渲染效果非常好。

你可以从 Ubuntu 中文论坛下载此补丁。

2009.2.19 更新

粗斜体的问题已经修复, 而且补丁也基本重写,很大程度上重用了 FVWM 的代码, 性能更高了,代码也简洁许多。除了粗斜体外, 还支持了旋转字体(FVWM 自身支持的,不过我不会设置)。

[下载链接已更新]

Read More:

31 Comments

  1. 1 布谷鸟 Commented @ 2009-02-17 17:01Reply to this comment

    http://www.cnbeta.com/articles/77270.htm

  2. 2 黑日白月 Commented @ 2009-02-17 17:09Reply to this comment

    一直觉得大屏幕用 FVWM 效果很好~啥时买42寸高清平板了,给 PS3 整个 FVWM 耍~

  3. 3 conwood Commented @ 2009-02-17 17:15Reply to this comment

    very cool! 下来试试。

  4. 4 aiezue Commented @ 2009-02-17 17:34Reply to this comment

    nice! 一直想用fvwm,无奈自己配置能力有限,美术细胞先天确实。苟活于各种tiling wm中.

  5. 5 zer4tul Commented @ 2009-02-17 17:37Reply to this comment

    好!哈哈……

  6. 6 Kingway Commented @ 2009-02-17 17:41Reply to this comment

    强!虽然现在不用fvwm了,但是强烈支持。以前用fvwm的时候经常为英文字体和中文字体不统一而烦恼。

  7. 7 slackcode Commented @ 2009-02-17 17:58Reply to this comment

    绝对是好东西

  8. 8 siziki Commented @ 2009-02-17 18:22Reply to this comment

    很老的文章了

  9. 9 HicroKee Commented @ 2009-02-17 18:33Reply to this comment

    不会配fvwm,不过我13寸本本耍gnome也很累。一个gimp-painter-就没了。

  10. 10 Lvjinhua Commented @ 2009-02-17 19:01Reply to this comment

    很Cool,非常Cool,中文用户们有福了!

  11. 11 32idea Commented @ 2009-02-17 19:07Reply to this comment

    FVWM配置起来还真是有些麻烦,只能羡慕别人啦

  12. 12 unshift Commented @ 2009-02-17 20:32Reply to this comment

    标题栏的字体怎么设置呢?详细点

  13. 13 华华 Commented @ 2009-02-17 20:50Reply to this comment

    @unshift: 打上补丁,然后设为 Sans

  14. 14 wyg1258 Commented @ 2009-02-17 21:50Reply to this comment

    hiweed啊,什么时候正式版啊

  15. 15 oceanboo Commented @ 2009-02-17 23:12Reply to this comment

    其实可以用个修改的混合字体不?

  16. 16 Hosanna Commented @ 2009-02-18 9:02Reply to this comment

    嗯~~~

    我来试一下。

  17. 17 John.H Commented @ 2009-02-18 9:04Reply to this comment

    文字渲染得很好啊,完全没有发虚的现象,这个是什么字体?

  18. 18 sw2wolf Commented @ 2009-02-18 9:06Reply to this comment

    现在openbox用得很爽, 不想换了

  19. 19 kemean Commented @ 2009-02-18 9:16Reply to this comment

    昨晚回去发现一个小问题, 不能将部分字体设置为粗斜或斜体,比如标题栏的字体. 因为我将fontset当作全局对象处理了, 等今晚回去了修正一下, 将全局的fontset变成FlocaleFont的成员对象就可以解决了.

  20. 20 Element Commented @ 2009-02-18 9:33Reply to this comment

    kemean就是Toy?

  21. 21 bingyuan Commented @ 2009-02-18 9:57Reply to this comment

    @aiezue,可以拿别人的.fvwm来玩, http://www.box-look.org/index.php?xcontentmode=7314&PHPSESSID=1403fccdf9fd763285452abdcbbec3a1

  22. 22 Toy Commented @ 2009-02-18 10:15Reply to this comment

    @Element: 不是。

  23. 23 aiezue Commented @ 2009-02-18 10:56Reply to this comment

    @bingyuan: 好主意,呵呵。这些人配置的太变态了。准备用几天,不过还没有fvwm,还得emerge呢。

  24. 24 gnowkuy Commented @ 2009-02-18 11:02Reply to this comment

    很漂亮哦,patch能不能提交进项目哦,有些发行版编译起来太麻烦了

  25. 25 yeii Commented @ 2009-02-18 12:26Reply to this comment

    好东西 一直在用FVWM

  26. 26 Jack Lee Commented @ 2009-02-18 12:49Reply to this comment

    真COOL!

  27. 27 kemean Commented @ 2009-02-19 0:54Reply to this comment

    不好意思, 刚刚一不小心把之前的补丁文件删掉了:(, 补丁的链接已经失效, Toy能否帮忙更新一下?

    粗斜体的问题已经解决! 新的补丁地址: http://forum.ubuntu.org.cn/download/file.php?id=56775

    新的效果图: http://forum.ubuntu.org.cn/download/file.php?id=56776&mode=view/bold-italic.png

  28. 28 kemean Commented @ 2009-02-19 1:30Reply to this comment

    多字体效果图: http://forum.ubuntu.org.cn/download/file.php?id=56777&mode=view/mix2.png

    菜单 -- monaco 标题 -- sans 中文 -- yahei

    字体设置: SetEnv FVWMFONT "StringEncoding=gbk-0:xft:monaco:size=10" SetEnv FVWMBDFONT "StringEncoding=gbk-0:xft:sans:size=11:slant=italic:bold"

  29. 29 Toy Commented @ 2009-02-19 9:06Reply to this comment

    @kemean: 已更新 :)

  30. 30 邱焜 Commented @ 2009-02-20 17:51Reply to this comment

    越来越觉得 awesome 和 fvwm 没有区别

  31. 31 sampeng Commented @ 2009-03-22 20:30Reply to this comment

    请问这个补丁怎么打?我新手。。谢谢 因为是ubuntu。。不知道跑哪个文件里面去打。。。