LinuxSir.cn,穿越时空的Linuxsir!

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

谁给我个fonts.conf?

[复制链接]
发表于 2004-11-10 20:17:25 | 显示全部楼层 |阅读模式
不用AA, 字体同windows XP下一样的效果

不好意思, 在坛上找了好久,没找到。。。
 楼主| 发表于 2004-11-10 20:18:38 | 显示全部楼层
忘说了, 我的是 slk 10 正式版
发表于 2004-11-10 22:29:40 | 显示全部楼层

给个local.conf你把

[PHP]<?xml version="1.0"?>
<!DOCTYPE fontconfig SYSTEM "fonts.dtd">
<fontconfig>

<!-- Uncomment below to enable all bitmapped fonts -->
<!--
  <dir>/usr/X11R6/lib/X11/fonts</dir>
-->
<!--
Use Helvetica
-->
  <dir>/usr/X11R6/lib/X11/fonts/75dpi</dir>

<!--
Enable subpixel rendering

  <match target="font">
    <test qual="all" name="rgba">
      <const>unknown</const>
    </test>
    <edit name="rgba" mode="assign"><const>rgb</const></edit>
  </match>
-->

<!--
Use embedded font

        <match target="font">
                <edit name="embed" mode="assign">
                        <bool>true</bool>
                </edit>
        </match>
        <match target="font">
                <edit name="embeddedbitmap" mode="assign">
                        <bool>true</bool>                       
                </edit>
        </match>
-->

<!--
  Add by firefly@firefly.idv.tw
  Disable "Global Advance" for all mono spacing fonts.

        <match target="font">
                <test name="spacing" compare="eq">
                        <const>mono</const>
                </test>
                <edit name="globaladvance" mode="assign">
                        <bool>false</bool>
                </edit>
        </match>
-->

<!--
Add by firefly@firefly.idv.tw
Artificial bold for fonts without a bold version.

        <match target="font">
                <test target="pattern" name="weight" compare="more">
                        <const>medium</const>
                </test>
                <edit name="weight" mode="assign">
                        <const>bold</const>
                </edit>
        </match>
-->

<!--
  Add by firefly@firefly.idv.tw
  Enable "hinting & autohint" for all fonts.

        <match target="font">
                <test name="family" compare="eq">
                        <string>SimSun</string>"or"<string>MingLiu</string>"or"<string>Bitstream Cyberbit</string>"or"<string>AR PL KaitiM Big5</string>"or"<string>AR PL Mingti2L Big5</string>"or"<string>AR PL KaitiM GB</string>"or"<string>AR PL SungtiL GB</string>
                </test>
                <edit name="hinting" mode="assign">
                        <bool>true</bool>
                </edit>
                <edit name="autohint" mode="assign">
                        <bool>true</bool>
                </edit>
        </match>
-->

<!--
  Enable "hinting & autohint" for all fonts.

        <match target="font">
                <edit name="autohint" mode="assign">
                        <bool>true</bool>
                </edit>
        </match>
-->

<!--
Disable antialias when "7<pixelsize<19"
-->
        <match target="font">
                <test qual="any" name="family">
                        <string>SimSun</string>
                </test>
                <test name="pixelsize" compare="more_eq">
                        <int>7</int>
                </test>
                <test name="pixelsize" compare="less_eq">
                        <int>19</int>
                </test>
                <edit name="antialias" mode="assign">
                        <bool>false</bool>
                </edit>
        </match>

        <match target="font">
                <test qual="any" name="family">
                        <string>NSimSun</string>
                </test>
                <test name="pixelsize" compare="more_eq">
                        <int>7</int>
                </test>
                <test name="pixelsize" compare="less_eq">
                        <int>19</int>
                </test>
                <edit name="antialias" mode="assign">
                        <bool>false</bool>
                </edit>
        </match>



<!--
Display with combination of SimSun & Helvetica
-->

        <match target="pattern">
                <test qual="any" name="family">
                        <string>sans-serif</string>
                </test>
                <edit name="family" mode="append" binding="strong">
                        <string>SimSun</string>
                </edit>
        </match>

        <match target="pattern">
                <test qual="any" name="family">
                        <string>sans-serif</string>
                </test>
                <edit name="family" mode="append" binding="strong">
                        <string>Helvetica</string>
                </edit>
        </match>

        <match target="pattern">
                <test qual="any" name="family" compare="eq">
                        <string>NSimSun</string>
                </test>
                <edit name="family" mode="prepend_first" binding="strong">
                        <string>Helvetica</string>
                </edit>
        </match>


<!--
binding Bitstream Vera Sans Mono to AR PL SungtiL GB & AR PL Kaitim GB

<match target="pattern">
        <test qual="any" name="family" compare="eq">
                <string>AR PL SungtiL GB</string>
        </test>
        <edit name="family" mode="prepend_first" binding="strong">
                <string>Bitstream Vera Sans Mono</string>
        </edit>
</match>

<match target="pattern">
        <test qual="any" name="family" compare="eq">
                <string>AR PL Kaitim GB</string>
        </test>
        <edit name="family" mode="prepend_first" binding="strong">
                <string>Bitstream Vera Sans</string>
        </edit>
</match>
-->


<!--
bingding Bitstream Vera Sans Mono to monospace
-->
<match target="pattern">
        <test qual="any" name="family">
                <string>monospace</string>
        </test>
        <edit name="family" mode="append" binding="strong">
                <string>Bitstream Vera Sans Mono</string>
        </edit>
</match>


</fontconfig>

[/PHP]
发表于 2004-11-10 22:37:13 | 显示全部楼层

曾经的一个贴图

simsun+helvetica的效果图
发表于 2004-11-11 01:56:51 | 显示全部楼层
http://download.linuxsir.cn/hupe ... -i486-1.firefly.tgz
http://download.linuxsir.cn/hupe ... -i486-1.firefly.tgz
http://download.linuxsir.cn/hupe ... -i486-1.firefly.tgz
http://download.linuxsir.cn/hupe ... -i486-2.firefly.tgz
装上以上4个包以后,再把下面的fonts.conf和local.conf放到/etc/fonts/下面,执行fc-cache即可达到你所要求的理想效果。

本帖子中包含更多资源

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

x
 楼主| 发表于 2004-11-11 06:17:15 | 显示全部楼层
谢谢各位了, 等下就可以用上漂亮的slack了,呵呵 ^_^

再小声的问下, 这个支持dropline gnome 2.8么?
发表于 2004-11-12 13:58:21 | 显示全部楼层
用yisha兄的fonts.zip,我直接替换/etc下的fonts.conf和local.conf,没装firefly美化包,结果效果和win下差不多。中文字体不错,但英文的“w”字母显示效果不好。同时启动有一些错误。
谁能给一个将这两个文件的美化功能合并成一个文件local.conf的文件?
您需要登录后才可以回帖 登录 | 注册

本版积分规则

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