QQ登录

只需一步,快速开始

 找回密码
 注册

QQ登录

只需一步,快速开始

查看: 2240|回复: 0

使用xft显示中文的一个技巧!

[复制链接]
发表于 2003-1-22 03:34:38 | 显示全部楼层 |阅读模式
使用了xft粗斜体补丁
Gnome2
Mozilla+xft
让英文字体显示带有消除锯齿效果,而SimSun中文字体在8-16尺寸保持不变

只要在/etc/fonts/fonts.conf中加入一下几行
[code:1]
<match target="font">
                <test name="family" compare="eq">
                <string>SimSun</string>
                </test>
               
                <test compare="more" name="size" qual="any">
                <double>8</double>
                </test>
                <test compare="less" name="size" qual="any">
                <double>16</double>
                </test>
       
                <test name="lang" compare="contains">
                <string>zh-cn</string>
                </test>
               
                <edit mode="assign" name="antialias">
                <bool>false</bool>
                </edit>
        </match>
[/code:1]

本帖子中包含更多资源

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

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

本版积分规则

GMT+8, 2024-4-28 17:08 , Processed in 0.074981 second(s), 16 queries .

© 2021 Powered by Discuz! X3.5.

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