QQ登录

只需一步,快速开始

 找回密码
 注册

QQ登录

只需一步,快速开始

楼主: apeter_2000

求fontconfig 配置代码:怎样给中文斜体打开AA?

[复制链接]
发表于 2005-11-14 21:39:47 | 显示全部楼层
magiclinux那里的sunmoon的个人文件里面没有叫做cairo-all-in-one.patch 的文件呀……
回复

使用道具 举报

发表于 2005-11-14 22:56:25 | 显示全部楼层
http://www.magiclinux.org/people/sunmoon1997/patches/cairo/cairo-font-fixes-all-in-one.diff
回复

使用道具 举报

发表于 2005-11-15 17:39:49 | 显示全部楼层
cairo-font-fixes-all-in-one.diff 补cairo 1.0.2补不上,会出错
回复

使用道具 举报

发表于 2005-11-16 13:11:03 | 显示全部楼层
cairo 1.0.2中包含了sunmoon1997的部分补丁, 不过用的改写代码不一样.

顺便借你的帖子再问个问题------cairo 1.0.2 make后谁make check过......

"ft-font-create-for-ft-face" test到这里, /bin/sh 报错, line 1 段错误.

lfs svn (gcc4.0.2 fontconfig 2.3.2)......
回复

使用道具 举报

发表于 2006-4-24 11:34:00 | 显示全部楼层

请教一下。

我的这个代码怎么才能把8到13号的中文字体的斜体的AA打开?
我自己试过,但是怎么也匹配不对  
[code:1]
<?xml version="1.0"?>
<!DOCTYPE fontconfig SYSTEM "fonts.dtd">
<!-- conf.d/10myfont.conf -->
<fontconfig>
        <dir>/usr/share/fonts</dir>
        <dir>/usr/local/share/fonts</dir>
        <dir>~/.fonts</dir>
<!--加入点阵字体路径-->
        <dir>/usr/X11R6/lib/X11/fonts</dir>
<!-- 关闭 8到13号字体的AA, -->
        <match target="font" >
                <test target="pattern" compare="contains" name="lang" >
                        <string>zh</string>
                        <string>ja</string>
                        <string>ko</string>
                </test>
                <test compare="more_eq" name="pixelsize" qual="any" >
                        <double>10</double>
                </test>
                <test compare="less_eq" name="pixelsize" qual="any" >
                        <double>16</double>
                </test>
                <edit mode="assign" name="antialias" >
                        <bool>false</bool>
                </edit>
        </match>
<!-- 解决英文字体间距过宽 -->
        <match target="font">
                <test target="pattern" name="lang" compare="contains">
                        <string>zh</string>
                        <string>ja</string>
                        <string>ko</string>
                </test>
                <edit name="spacing">
                        <const>proportional</const>
                </edit>
                <edit name="globaladvance">
                        <bool>false</bool>
                </edit>
        </match>
        <!--
         设定中文最小字号,使得小字的中文美观
        -->
        <match target="font" >
                <test name="family" qual="any" >
                        <string>AR PL ShanHeiSun Uni</string>
                        <string>AR PL SenKai Uni</string>
                        <string>AR PL New Sung</string>
                </test>
                <test compare="more_eq" name="pixelsize" >
                        <int>6</int>
                </test>
                <test compare="less_eq" name="pixelsize" >
                        <int>9</int>
                </test>
                <edit compare="eq" name="pixelsize" >
                        <int>9</int>
                </edit>
        </match>
</fontconfig>
[/code:1]
回复

使用道具 举报

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

本版积分规则

GMT+8, 2024-5-15 01:29 , Processed in 0.125898 second(s), 13 queries .

© 2021 Powered by Discuz! X3.5.

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