[shlug]如何配置.fonts.conf文件,用黑体字体替换所有中文粗体字?

12 views
Skip to first unread message

Giant Y

unread,
Apr 12, 2014, 8:49:26 AM4/12/14
to shlug
RT!
目前的情况请看下面的图片,不知道用了什么方法生成的宋体的粗体,简直惨不忍睹……
Inline image 1
英文字体还可以,不想做更改了。

-> posted by  Giant Y

包乾

unread,
Apr 12, 2014, 7:29:12 PM4/12/14
to sh...@googlegroups.com

前段时间研究过字体配置,对于x的程序可以在xresource里指定字体。不过关于font.conf,看了一些资料感觉这个并不是给你修改的,你如果觉得不满意,不要修改conf,而是去安装新字体让conf给你自动匹配。自己也不是完全清楚,等高手补充更正

2014/04/12 21:49 "Giant Y" <y560...@gmail.com>:
--
-- You received this message because you are subscribed to the Google Groups Shanghai Linux User Group group. To post to this group, send email to sh...@googlegroups.com. To unsubscribe from this group, send email to shlug+un...@googlegroups.com. For more options, visit this group at https://groups.google.com/d/forum/shlug?hl=zh-CN
---
您收到此邮件是因为您订阅了Google网上论坛中的“Shanghai Linux User Group”论坛。
要退订此论坛并停止接收此论坛的电子邮件,请发送电子邮件到shlug+un...@googlegroups.com
要查看更多选项,请访问https://groups.google.com/d/optout

依云

unread,
Apr 13, 2014, 11:00:11 AM4/13/14
to sh...@googlegroups.com
On Sat, Apr 12, 2014 at 08:49:26PM +0800, Giant Y wrote:
> RT!
> 目前的情况请看下面的图片,不知道用了什么方法生成的宋体的粗体,简直惨不忍睹……
> [image: Inline image 1]
> 英文字体还可以,不想做更改了。

试试看:

<match target="pattern">
<test name="family">
<string>宋体</string>
</test>
<test compare="more_eq" name="weight">
<int>200</int>
</test>
<edit binding="strong" mode="prepend" name="family">
<string>黑体</string>
</edit>
</match>

详见 man 手册 fonts-conf(5)

--
Best regards,
lilydjwg

Linux Vim Python 我的博客:
http://lilydjwg.is-programmer.com/
--
A: Because it obfuscates the reading.
Q: Why is top posting so bad?
Reply all
Reply to author
Forward
0 new messages