LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
12
返回列表 发新帖
楼主: yhniejun

把大伴儿的local.conf贴出来分享一下吧!

[复制链接]
发表于 2006-10-16 09:52:33 | 显示全部楼层
我的其实是从精华区中copy的。所以,看来你们都不看精华区。
回复 支持 反对

使用道具 举报

发表于 2006-10-16 11:08:12 | 显示全部楼层
目前最满意的配置,存为~/.fonts.conf 即可,适用于crt显示器;
[PHP]<?xml version="1.0"?>
<!DOCTYPE fontconfig SYSTEM "fonts.dtd">
<!-- conf.d/myfont.conf --><fontconfig>
<dir>/usr/share/fonts</dir>
<dir>/usr/share/fonts/truetype/</dir>
<dir>/usr/share/fonts/chinese/</dir>
<dir>/usr/local/share/fonts</dir>
<dir>~/.fonts</dir>
<!--加入点阵字体路径--> <dir>/usr/X11R6/lib/X11/fonts</dir>
<!--给使用 fontconfig 的程序设定目标 dpi,程序包括 kdm, kde 等:--><!--
   Target dots per inch
--><!--        <match target="pattern">
                <edit name="dpi" mode="assign" >
                        <double>96</double>
                </edit>
        </match> --><!--
配置粗体中文显示,要配合freetype-2.1.10,libxft-2.1.7,fontconfig-2.3.X
--> <match target="font" >
<!-- check to see if the font is just regular -->  <test compare="less_eq" name="weight" >
   <const>medium</const>
  </test>
<!-- check to see if the pattern requests bold -->  <test compare="more" target="pattern" name="weight" >
   <const>medium</const>
  </test>
<!--
                  set the embolden flag
                  needed for applications using cairo, e.g. gucharmap, gedit, ...
                -->  <edit mode="assign" name="embolden" >
   <bool>true</bool>
  </edit>
<!--
                 set weight to bold
                 needed for applications using Xft directly, e.g. Firefox, ...
                -->  <edit mode="assign" name="weight" >
   <const>bold</const>
  </edit>
<!--据说freetype2处理bitmap字体加粗在Hinting之后造成宋体粗体很丑-->  <edit mode="assign" name="hintstyle" >
   <const>hintnone</const>
  </edit>
</match>
<!--
default settings for all fonts.
--> <match target="font" >
<!-- 打开字体的反锯齿即AA,大号字用AA会更美观 -->  <edit mode="assign" name="antialias" >
   <bool>true</bool>
  </edit>
  <edit mode="assign" name="hintstyle" >
   <const>hintfull</const>
  </edit>
<!-- 打开hint -->  <edit mode="assign" name="hinting" >
   <bool>true</bool>
  </edit>
<!-- 关闭autohint -->  <edit mode="assign" name="autohint" >
   <bool>false</bool>
  </edit>
</match>
<!-- 关闭中文8到18号字体的AA --> <match target="font" >
<!---->  <test compare="contains" name="lang" >
   <string>zh-cn</string>
   <string>zh-tw</string>
   <string>ja</string>
   <string>ko</string>
  </test>
  <test compare="more_eq" name="pixelsize" qual="any" >
   <double>8</double>
  </test>
  <test compare="less_eq" name="pixelsize" qual="any" >
   <double>18</double>
  </test>
  <edit mode="assign" name="antialias" >
   <bool>false</bool>
  </edit>
</match>
<!--关闭英文字体6号到16号的AA--> <match target="font" >
  <test name="family" >
   <string>Albany</string>
   <string>Helvetica</string>
   <string>alatino Linotype</string>
   <string>DejaVu Serif</string>
   <string>Bitstream Vera Serif</string>
   <string>DejaVu Sans</string>
   <string>Bitstream Vera Sans</string>
   <string>DejaVu Sans Mono</string>
   <string>Bitstream Vera Sans Mono</string>
   <string>Times</string>
   <string>Courier</string>
   <string>Monaco</string>
<!--以上是自己添加的字体-->   <string>Andale Mono</string>
   <string>Arial</string>
   <string>Comic Sans MS</string>
   <string>Georgia</string>
   <string>Impact</string>
   <string>Trebuchet MS</string>
   <string>Verdana</string>
   <string>Courier New</string>
   <string>Times New Roman</string>
   <string>Tahoma</string>
   <string>Webdings</string>
   <string>Albany AMT</string>
   <string>Thorndale AMT</string>
   <string>Cumberland AMT</string>
   <string>Andale Sans</string>
   <string>Andy MT</string>
   <string>Bell MT</string>
   <string>Monotype Sorts</string>
  </test>
  <test compare="more_eq" name="pixelsize" qual="any" >
   <double>6</double>
  </test>
  <test compare="less_eq" name="pixelsize" >
   <double>16</double>
  </test>
  <edit name="autohint" >
   <bool>false</bool>
  </edit>
  <edit name="antialias" >
   <bool>false</bool>
  </edit>
</match>
<include ignore_missing="yes" >~/.msttcorefonts.conf</include>
<!--单独指定某款字体为AA --> <match target="font" >
  <test compare="eq" name="family" qual="any" >
   <string>Segoe UI</string>
   <string>roFontWindows</string>
   <string>Microsoft YaHei</string>
   <string>STHeiti</string>
   <string>Andale Mono</string>
   <string>YouYuan</string>
   <string>Adobe Song Std</string>
  </test>
  <edit name="antialias" >
   <bool>true</bool>
  </edit>
</match>
<!-- 倾斜字体用AA表示--> <match target="font" >
<!-- check to see if the font is roman -->  <test name="slant" >
   <const>roman</const>
  </test>
<!-- check to see if the pattern requested non-roman -->  <test compare="not_eq" target="pattern" name="slant" >
   <const>roman</const>
  </test>
<!-- multiply the matrix to slant the font -->  <edit mode="assign" name="matrix" >
   <times>
    <name>matrix</name>
    <matrix>
     <double>1</double>
     <double>0.2</double>
     <double>0</double>
     <double>1</double>
    </matrix>
   </times>
  </edit>
<!-- pretend the font is oblique now -->  <edit mode="assign" name="slant" >
   <const>oblique</const>
  </edit>
<!--and disable embedded bitmaps for artificial oblique-->  <edit mode="assign" name="antialias" >
   <bool>true</bool>
  </edit>
</match>
<match target="font" >
  <test compare="eq" target="pattern" name="slant" >
   <const>oblique</const>
  </test>
  <edit mode="assign" name="antialias" >
   <bool>true</bool>
  </edit>
</match>
<match target="font" >
  <test compare="eq" target="pattern" name="slant" >
   <const>Italic</const>
  </test>
  <edit mode="assign" name="antialias" >
   <bool>true</bool>
  </edit>
</match>
<!-- 解决英文字体间距过宽 --> <match target="font" >
  <test compare="contains" target="pattern" name="lang" >
   <string>zh-tw</string>
   <string>zh-cn</string>
   <string>ja</string>
   <string>ko</string>
  </test>
  <edit name="spacing" >
   <const>proportional</const>
  </edit>
  <edit name="globaladvance" >
   <bool>false</bool>
  </edit>
</match>
<!--在没有打补丁的系统上,人工定义宋体,可解决hotmail这类网站宋体英文的替换
--> <alias>
  <family>宋体</family>
  <prefer>
   <family>Helvetica</family>
   <family>Verdana</family>
   <family>Arial</family>
   <family>Albany</family>
   <family>DejaVu Serif</family>
   <family>Bitstream Vera Serif</family>
   <family>Tahoma</family>
   <family>Times</family>
   <family>SimSun</family>
   <family>Vera Sans YuanTi</family>
   <family>WenQuanYi Bitmap Song</family>
   <family>AR PL ShanHeiSun Uni</family>
   <family>AR PL ZenKai Uni</family>
  </prefer>
</alias>
<!-- 替换宋体的英文字符 --> <match target="pattern" >
  <test name="family" >
   <string>SimSun</string>
   <string>SimSun-18030</string>
   <string>宋体</string>
   <string>Sun\-ExtA</string>
   <string>Sun\-ExtB</string>
   <string>AR PL ShanHeiSun Uni</string>
   <string>AR PL New Sung</string>
   <string>MingLiU</string>
   <string>新細明體</string>
  </test>
<!--<edit mode="prepend" binding="same" name="family" >        -->  <edit mode="prepend" binding="strong" name="family" >
   <string>Verdana</string>
   <string>Helvetica</string>
   <string>Arial</string>
   <string>Tahoma</string>
   <string>DejaVu Sans</string>
   <string>Bitstream Vera Sans</string>
   <string>DejaVu Serif</string>
   <string>Bitstream Vera Serif</string>
  </edit>
</match>
<match target="font" >
  <test name="family" qual="any" >
   <string>NSimSun</string>
   <string>新宋体</string>
   <string>MingLiU</string>
   <string>細明體</string>
  </test>
  <edit mode="prepend" binding="strong" name="family" >
   <string>Courier New</string>
   <string>Courier</string>
  </edit>
</match>
<!--
设定中文最小字号,使得小字的中文美观
--> <match target="font" >
  <test name="family" qual="any" >
   <string>SimSun</string>
   <string>NSimSun</string>
   <string>SimSun,宋体</string>
   <string>SimHei</string>
   <string>Vera Sans YuanTi</string>
   <string>Vera Sans YuanTi Mono</string>
   <string>SimSun-18030</string>
   <string>Sun ExtA</string>
   <string>Sun ExtB</string>
   <string>ZYSong18030</string>
<!-- han (zh-cn,zh-tw) -->   <string>Microsoft YaHei</string>
   <string>DongWen SongTi</string>
   <string>FZSongTi</string>
   <string>AR PL ZenKai Uni</string>
   <string>FZSongTi</string>
   <string>FZMingTiB</string>
   <string>FangSong_GB2312</string>
   <string>KaiTi_GB2312</string>
  </test>
  <test compare="more_eq" name="pixelsize" >
   <int>6</int>
  </test>
  <test compare="less_eq" name="pixelsize" >
   <int>12</int>
  </test>
  <edit compare="eq" name="pixelsize" >
   <int>12</int>
  </edit>
</match>
<match target="font" >
  <test name="family" qual="any" >
   <string>AR PL ShanHeiSun 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>13</int>
  </test>
  <edit mode="assign" name="pixelsize" >
   <int>13</int>
  </edit>
</match>
<!--
把serif ,sans,monospace的family(字体族)重新排序,适应中文用户的用字习惯
--> <alias>
  <family>serif</family>
  <prefer>
   <family>Georgia</family>
   <family>alatino Linotype</family>
   <family>DejaVu Serif</family>
   <family>Bitstream Vera Serif</family>
   <family>Times New Roman</family>
   <family>Nimbus Roman No9 L</family>
   <family>Luxi Serif</family>
   <family>Times</family>
   <family>SimSun</family>
   <family>Vera Sans YuanTi</family>
   <family>Microsoft YaHei</family>
   <family>MingLiU,新細明體</family>
   <family>STHeiti</family>
   <family>SimSun-18030</family>
   <family>Sun ExtA</family>
   <family>Sun ExtB</family>
   <family>ZYSong18030</family>
<!-- han (zh-cn,zh-tw) -->   <family>DongWen SongTi</family>
   <family>FZSongTi</family>
   <family>WenQuanYi Bitmap Song</family>
   <family>AR PL ShanHeiSun Uni</family>
   <family>AR PL ZenKai Uni</family>
   <family>AR PL New Sung</family>
   <family>FZSongTi</family>
   <family>FZMingTiB</family>
   <family>MS Mincho,MS 明朝</family>
   <family>AR PL SungtiL GB</family>
   <family>AR PL Mingti2L Big5</family>
   <family>Baekmuk Batang</family>
  </prefer>
</alias>
<alias>
  <family>sans-serif</family>
  <prefer>
   <family>Tahoma</family>
   <family>Arial</family>
   <family>Albany</family>
   <family>Helvetica</family>
   <family>Verdana</family>
   <family>DejaVu Sans</family>
   <family>Bitstream Vera Sans</family>
   <family>Comic Sans MS</family>
   <family>SimSun</family>
   <family>Vera Sans YuanTi</family>
   <family>Microsoft YaHei</family>
   <family>MingLiU,新細明體</family>
   <family>STHeiti</family>
   <family>SimSun-18030</family>
   <family>Sun ExtA</family>
   <family>Sun ExtB</family>
   <family>ZYSong18030</family>
<!-- han (zh-cn,zh-tw) -->   <family>DongWen SongTi</family>
   <family>FZSongTi</family>
   <family>WenQuanYi Bitmap Song</family>
   <family>AR PL ShanHeiSun Uni</family>
   <family>AR PL ZenKai Uni</family>
   <family>AR PL New Sung</family>
   <family>FZSongTi</family>
   <family>FZMingTiB</family>
   <family>Kochi Gothic</family>
   <family>AR PL KaitiM GB</family>
   <family>AR PL KaitiM Big5</family>
   <family>Baekmuk Dotum</family>
  </prefer>
</alias>
<alias>
  <family>monospace</family>
  <prefer>
   <family>DejaVu Sans Mono</family>
   <family>Bitstream Vera Sans Mono</family>
   <family>Monaco</family>
   <family>Andale Mono</family>
   <family>Courier</family>
   <family>Courier New</family>
   <family>Andale Mono</family>
   <family>Luxi Mono</family>
   <family>Nimbus Mono L</family>
   <family>SimSun</family>
   <family>NSimSun,新宋体</family>
   <family>Vera Sans YuanTi Mono</family>
   <family>Microsoft YaHei</family>
   <family>MingLiU,細明體</family>
   <family>NSimSun-18030</family>
   <family>Sun ExtA</family>
   <family>Sun ExtB</family>
   <family>ZYSong18030</family>
<!-- han (zh-cn,zh-tw) -->   <family>DongWen SongTi</family>
   <family>FZSongTi</family>
   <family>WenQuanYi Bitmap Song</family>
   <family>AR PL ShanHeiSun Uni</family>
   <family>AR PL ZenKai Uni</family>
   <family>AR PL New Sung</family>
   <family>FZSongTi</family>
   <family>FZMingTiB</family>
   <family>Kochi Gothic</family>
   <family>AR PL KaitiM GB</family>
   <family>Baekmuk Dotum</family>
  </prefer>
</alias>
</fontconfig>
[/PHP]
回复 支持 反对

使用道具 举报

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

本版积分规则

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