QQ登录

只需一步,快速开始

 找回密码
 注册

QQ登录

只需一步,快速开始

查看: 4127|回复: 9

求:debian的超级美化过程,[實現字型替代]

[复制链接]
发表于 2004-12-25 21:36:07 | 显示全部楼层 |阅读模式
喜欢debian,就是死活搞不定显卡驱动,后来发现knoppix很cool,光盘运行,还被大虾汉化了,真不错,可是不支持reiserfs,不爽,而且安装到硬盘所有的汉化都没有保留,还得从头做,那我要他做什么哦。终于。。。。。。。我发现了mepis,靠,真是cool啊,debian的,光盘运行,又可以安装到硬盘,所有设置保留(基本上就是拷贝了),哈哈,最重要的是支持我的nvidia getforce2 显卡,ut2004,supertux,大家一起来gaming!电脑就是拿来玩的嘛,桌面系统,我觉得mepis是做得最好的了,不信?http://www.distrowatch.com
看看排行吧,赶超knoppix,快追上老东家debian了。罗嗦了这么多,小弟前段时间做了一下SimplyMEPIS-2004.04的汉化版本,算是成功了,就是字体,实在是。。。。。哎,所以想求助一下大家了,老大帮我做个完美的汉化吧,我是这么想的:

1、不考虑版权问题,我觉得这个没得选择,只能使用宋体,因为你要和别人交换数据啊,别人都是宋体的,怎么办,还有我看了一些不是宋体做的pdf文件,有点惨不忍睹,像我这样的new linuxer都快看得没信心了。

2、不想使用firefly的美化包(据说影响速度?不晓得,反正我不喜欢多装那么多包,还要不定时更新,懒啊),粗体用黑体代替(当然有宋体的粗体更好!),italic用楷书,汉字搞成斜体要是在小学非被老师骂死:“你的字又睡觉了?”

3、fcitx这个输入法不错,就是总在桌面上,要是ctrl+space 出现,ctrl + space 就隐藏就好了(忘了哪个系统了就是这样的,cool啊)

4、中文打印还没有考虑,拔个萝卜弄个坑吧


您如果不能回答这个问题请和我一起关注这个题字的解决方案好吗?我希望第二个跟贴得就把这个解决了:)拜托了各位大大
发表于 2004-12-25 22:20:08 | 显示全部楼层
2、不想使用firefly的美化包



本来还想帮你
那就算了
回复

使用道具 举报

发表于 2004-12-25 23:48:53 | 显示全部楼层
http://www.linuxforum.net/forum/gshowflat.php?Cat=&Board=chinese&Number=501162&page=0&view=collapsed&sb=5&o=all&fpart=
回复

使用道具 举报

发表于 2004-12-26 03:21:55 | 显示全部楼层
3n是个懒人



在所貼的Mozilla擷圖中,包括了幾款字體:
Times New Roman, mingliu.ttc, simhei.ttf ,kaiu.ttf
一般都可在Windows 中找到;
當然亦可用:
Tahoma, simsun.ttc, simhei ,kaiu.ttf.
將字體放到 fonts.conf 指定的字型安裝路徑。
設定:
先備份fonts.conf及local.conf,
將fonts.conf這段模擬斜體描述移除:

[code:1]
<!--
Artificial oblique for fonts without an italic or oblique version
-->

<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 target="pattern" name="slant" compare="not_eq">
<const>roman</const>
</test>
<!-- multiply the matrix to slant the font -->
<edit name="matrix" mode="assign">
<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 name="slant" mode="assign">
<const>oblique</const>
</edit>
</match>
[/code:1]

如你有安裝 firefly's patches,
也請將local.conf這段模擬粗體描述移除:
[code:1]
<!--
Add by [email protected]
Artificial bold for fonts without a bold version.
-->
<match target="font">
<!-- check to see if the pattern requested > "medium" -->
<test target="pattern" name="weight" compare="more">
<const>medium</const>
</test>
<!-- pretend the font is bold now -->
<edit name="weight" mode="assign">
<const>bold</const>
</edit>
</match>
[/code:1]
然後將下面三段加到 local.conf 中:
[code:1]
<match target="pattern">
<test name="family">
<string>Times New Roman</string>
</test>
<edit name="family" mode="append" binding="strong">
<string>PMingLiU</string>
</edit>
</match>


<match target="pattern">
<test name="weight" compare="more">
<const>medium</const>
</test>
<test name="family" compare="eq">
<string>PMingLiU</string>
</test>
<edit name="family" mode="assign">
<string>SimHei</string>
</edit>
</match>


<match target="pattern">
<test name="slant" compare="not_eq">
<const>roman</const>
</test>
<test name="family" compare="eq">
<string>PMingLiU</string>
</test>
<edit name="family" mode="assign">
<string>DFKai-SB</string>
</edit>
<!-- pretend the font is oblique now -->
<edit name="slant" mode="assign">
<const>oblique</const>
</edit>
</match>

[/code:1]
笫一段是一般文字替代,Tmes New Roman沒有的字型(如中文)會強制以 PMingLiU 來補入;
當然,你可用Tahoma替代Tmes New Roman,SimSun 替代 PMingLiU(mingliu.ttc)。

笫二段是將PMingLiU的粗體,轉配給 SimHei(windows黑體);當然,你也可將SimSun 替代 PMingLiU。

笫三段是將PMingLiU的斜體,轉配給 DFKai-SB(windows楷體);當然,你也可將SimSun 替代 PMingLiU。

下指令﹕#fc-cache -f

在Mozilla設定字體,全選Times New Roman或Tahoma,在乎你安裝的是甚麼字體。

補充一點,假如你發覺Tahoma的粗體不見了,不用粗心,衹要將windows下的 tahomabd.ttf 也安裝進去吧!
回复

使用道具 举报

 楼主| 发表于 2004-12-26 09:38:19 | 显示全部楼层
cnhnln、atfa老大亲自出马,感激不尽啊。。。。。。。
这种方法果然简单,就是感觉字体略嫌模糊,不知道unisum能不能解决这个问题。
另外,好像openoffice.org需要font.dir文件,我想用ttmkfontdir自动生成应该没什么影响吧,不行的话就借用atfa老大的font.dir文件了,这样xmms之类的程序也就解决了。

atfa老大如果有时间的话,不妨firefly的方法也一并告知,呵呵,没用过,所以想见识一下究竟效果如何:)如果老大没时间就算了。

再次感谢cnhnln、atfa老大!!!!!!!

最近硬盘坏了,所以还没的时间汉化制作Promepis2005的光盘,等1月份就有正式版发布了,估计硬盘也该返厂回来,有兴趣的朋友一起探讨哦。
回复

使用道具 举报

发表于 2004-12-26 13:14:40 | 显示全部楼层
[quote:fb08bb4907="atfa"]3n是个懒人 [/quote]
没错
既然转过来了,就麻烦斑竹授个“精”吧,我觉得不错
回复

使用道具 举报

发表于 2004-12-26 22:27:31 | 显示全部楼层
[quote:1d85489e84="cnhnln"][quote:1d85489e84="atfa"]3n是个懒人 [/quote]
没错
既然转过来了,就麻烦斑竹授个“精”吧,我觉得不错[/quote]

M的,还不是让我做
回复

使用道具 举报

发表于 2004-12-26 22:31:58 | 显示全部楼层
我新安装的系统

打firefly的三个补丁包后

拷贝字体后

使用下面的配置文件

完成所有美化工作

下面是我的fonts.conf文件

[code:1]
<?xml version="1.0"?>
<!DOCTYPE fontconfig SYSTEM "fonts.dtd">
<!-- /etc/fonts/fonts.conf file to configure system font access -->
<fontconfig>

<!--
        DO NOT EDIT THIS FILE.
        IT WILL BE REPLACED WHEN FONTCONFIG IS UPDATED.
        LOCAL CHANGES BELONG IN 'local.conf'.

        The intent of this standard configuration file is to be adequate for
        most environments.  If you have a reasonably normal environment and
        have found problems with this configuration, they are probably
        things that others will also want fixed.  Please submit any
        problems to the fontconfig bugzilla system located at fontconfig.org

        Note that the normal 'make install' procedure for fontconfig is to
        replace any existing fonts.conf file with the new version.  Place
        any local customizations in local.conf which this file references.

        Keith Packard
-->

        <dir>/usr/share/fonts</dir>
        <dir>/usr/X11R6/lib/X11/fonts/Type1</dir>
        <dir>~/.fonts</dir>

<!--
        <match target="font">
                <edit name="rgba" mode="assign"><const>rgb</const></edit>
        </match>
-->

<!--
  Accept deprecated 'mono' alias, replacing it with 'monospace'
-->
        <match target="pattern">
                <test qual="any" name="family">
                        <string>mono</string>
                </test>
                <edit name="family" mode="assign">
                        <string>monospace</string>
                </edit>
        </match>

<!--
  Accept alternate 'sans serif' spelling, replacing it with 'sans-serif'
-->
        <match target="pattern">
                <test qual="any" name="family">
                        <string>sans serif</string>
                </test>
                <edit name="family" mode="assign">
                        <string>sans-serif</string>
                </edit>
        </match>

<!--
  Accept deprecated 'sans' alias, replacing it with 'sans-serif'
-->
        <match target="pattern">
                <test qual="any" name="family">
                        <string>sans</string>
                </test>
                <edit name="family" mode="assign">
                        <string>sans-serif</string>
                </edit>
        </match>

<!--
  Mark common families with their generics so we'll get
  something reasonable
-->
<!--
        <match target="font">
                <test name="family" compare="eq"><string>SimSun</string></test>
                <test compare="more" name="size" qual="any"><double>7.5</double></test>
                <test compare="less" name="size" qual="any"><double>16</double></test>
                <edit name="antialias" mode="assign"><bool>false</bool></edit>
        </match>

        <match target="font">
                <test name="family" compare="eq"><string>UniSun</string></test>
                <test compare="more" name="size" qual="any"><double>7.5</double></test>
                <test compare="less" name="size" qual="any"><double>16</double></test>
                <edit name="antialias" mode="assign"><bool>false</bool></edit>
        </match>

        <match target="font">
                <test name="family" compare="eq"><string>PMingLiu</string></test>
                <test compare="more" name="size" qual="any"><double>8</double></test>
                <test compare="less" name="size" qual="any"><double>16</double></test>
                <edit name="antialias" mode="assign"><bool>false</bool></edit>
        </match>

        <match target="font">
                <test name="family" compare="eq"><string>MingLiu</string></test>
                <test compare="more" name="size" qual="any"><double>8</double></test>
                <test compare="less" name="size" qual="any"><double>16</double></test>
                <edit name="antialias" mode="assign"><bool>false</bool></edit>
        </match>
-->


        <alias>
                <family>Bitstream Vera Sans</family>
                <family>Helvetica</family>
                <family>Arial</family>
                <family>Verdana</family>
                <family>Tahoma</family>
                <family>Nimbus Sans L</family>
                <family>Luxi Sans</family>
                <family>UniSun</family>
                <family>PMingLiu</family>
                <family>Kochi Gothic</family>
                <family>AR PL KaitiM GB</family>
                <family>AR PL KaitiM Big5</family>
                <family>Baekmuk Dotum</family>
                <default><family>serif</family></default>
        </alias>


<!--
  Serif faces
-->
        <alias>
                <family>Tahoma</family>
                <family>SimSun</family>
                <family>Bitstream Vera Serif</family>
                <family>Times</family>
                <family>Times New Roman</family>
                <family>Nimbus Roman No9 L</family>
                <family>Luxi Serif</family>
                <family>UniSun</family>
                <family>Kochi Mincho</family>
                <family>Baekmuk Batang</family>                       
                <default><family>sans</family></default>
        </alias>
<!--
  Sans-serif faces
-->
        <alias>
                <family>Bitstream Vera Sans</family>
                <family>Helvetica</family>
                <family>Arial</family>
                <family>Verdana</family>
                <family>Tahoma</family>
                <family>SimSun</family>
                <family>Nimbus Sans L</family>
                <family>Luxi Sans</family>
                <family>UniSun</family>
                <family>Kochi Gothic</family>
                <family>Baekmuk Dotum</family>
                <default><family>sans-serif</family></default>
        </alias>
<!--
  Monospace faces
-->
        <alias>
                <family>Bitstream Vera Sans Mono</family>
                <family>Courier</family>
                <family>Courier New</family>
                <family>SimSun</family>
                <family>Andale Mono</family>
                <family>Luxi Mono</family>
                <family>Nimbus Mono L</family>
                <family>UniSun</family>
                <default><family>monospace</family></default>
        </alias>
<!--
  If the font still has no generic name, add sans-serif
-->
        <match target="pattern">
                <test qual="all" name="family" compare="not_eq">
                        <string>sans-serif</string>
                </test>
                <test qual="all" name="family" compare="not_eq">
                        <string>serif</string>
                </test>
                <test qual="all" name="family" compare="not_eq">
                        <string>monospace</string>
                </test>
                <edit name="family" mode="append_last">
                        <string>sans-serif</string>
                </edit>
        </match>
       
<!--
  Some Asian fonts misadvertise themselves as monospaced when
  in fact they are dual-spaced (half and full).  This makes
  FreeType very confused as it forces all widths to match.
  Undo this magic by disabling the width forcing code -->
        <match target="font">
                <test name="family"><string>GulimChe</string></test>
                <edit name="globaladvance"><bool>false</bool></edit>
        </match>
       
        <match target="font">
                <test name="family"><string>DotumChe</string></test>
                <edit name="globaladvance"><bool>false</bool></edit>
        </match>

        <match target="font">
                <test name="family"><string>BatangChe</string></test>
                <edit name="globaladvance"><bool>false</bool></edit>
        </match>

        <match target="font">
                <test name="family"><string>GungsuhChe</string></test>
                <edit name="globaladvance"><bool>false</bool></edit>
        </match>

<!--
        The Bitstream Vera fonts have GASP entries suggesting that hinting be
        disabled below 8 ppem, but FreeType ignores those, preferring to use
        the data found in the instructed hints.  The initial Vera release
        didn't include the right instructions in the 'prep' table. Fix this
        by disabling hinting manually at smaller sizes (< 8ppem)
-->
       
        <match target="font">
                <test name="family">
                        <string>Bitstream Vera Sans</string>
                </test>
                <test name="pixelsize" compare="less">
                        <double>7.5</double>
                </test>
                <edit name="hinting">
                        <bool>false</bool>
                </edit>
        </match>
       
        <match target="font">
                <test name="family">
                        <string>Bitstream Vera Serif</string>
                </test>
                <test name="pixelsize" compare="less">
                        <double>7.5</double>
                </test>
                <edit name="hinting">
                        <bool>false</bool>
                </edit>
        </match>
       
        <match target="font">
                <test name="family">
                        <string>Bitstream Vera Sans Mono</string>
                </test>
                <test name="pixelsize" compare="less">
                        <double>7.5</double>
                </test>
                <edit name="hinting">
                        <bool>false</bool>
                </edit>
        </match>
       
<!--
  Load per-user customization file
-->
        <include ignore_missing="yes">~/.fonts.conf</include>

<!--
  Load local system customization file
-->
        <include ignore_missing="yes">local.conf</include>

<!--
  Alias well known font names to available TrueType fonts
-->
        <alias>
                <family>Times</family>
                <accept><family>Times New Roman</family></accept>
        </alias>
        <alias>
                <family>Helvetica</family>
                <accept><family>Verdana</family></accept>
        </alias>
        <alias>
                <family>Arial</family>
                <accept><family>Verdana</family></accept>
        </alias>
        <alias>
                <family>Courier</family>
                <accept><family>Courier New</family></accept>
        </alias>

<!--
Check user preference to avoid bitmap fonts and replace
bitmap face names with equivalent scalable fonts
-->

        <match target="pattern">
                <test name="prefer_outline">
                        <bool>true</bool>
                </test>
                <test name="family">
                        <string>Helvetica</string>
                </test>
                <edit name="family" mode="prepend" binding="same">
                        <string>Arial</string>
                </edit>
        </match>

        <match target="pattern">
                <test name="prefer_outline">
                        <bool>true</bool>
                </test>
                <test name="family">
                        <string>Times</string>
                </test>
                <edit name="family" mode="prepend" binding="same">
                        <string>Times New Roman</string>
                </edit>
        </match>
<!--
  Provide required aliases for standard names
-->
        <alias>
                <family>sans</family>
                <prefer>
                        <family>Bitstream Vera Serif</family>
                        <family>Tahoma</family>
                        <family>SimSun</family>
                        <family>Times New Roman</family>
                        <family>Nimbus Roman No9 L</family>
                        <family>Luxi Serif</family>
                        <family>Times</family>
                        <family>Kochi Mincho</family>
                        <family>UniSun</family>
                        <family>Baekmuk Batang</family>                       
                </prefer>
        </alias>
        <alias>
                <family>serif</family>
                <prefer>
                        <family>Bitstream Vera Serif</family>
                        <family>Tahoma</family>
                        <family>UniSun</family>
                        <family>Times New Roman</family>
                        <family>Nimbus Roman No9 L</family>
                        <family>Luxi Serif</family>
                        <family>Times</family>
                        <family>Kochi Mincho</family>
                        <family>Baekmuk Batang</family>
                </prefer>
        </alias>

        <alias>
                <family>sans-serif</family>
                <prefer>
                        <family>Bitstream Vera Sans</family>
                        <family>Verdana</family>
                        <family>Tahoma</family>
                        <family>SimSun</family>
                        <family>Nimbus Sans L</family>
                        <family>Luxi Sans</family>
                        <family>Arial</family>
                        <family>Helvetica</family>
                        <family>Kochi Gothic</family>
                        <family>UniSun</family>
                        <family>Baekmuk Dotum</family>
                </prefer>
        </alias>
        <alias>
                <family>monospace</family>
                <prefer>
                        <family>Bitstream Vera Sans Mono</family>
                        <family>Andale Mono</family>
                        <family>Courier New</family>
                        <family>SimSun</family>
                        <family>Luxi Mono</family>
                        <family>Nimbus Mono L</family>
                        <family>Kochi Gothic</family>
                        <family>UniSun</family>
                        <family>Baekmuk Dotum</family>
                </prefer>
        </alias>

<!--
Artificial oblique for fonts without an italic or oblique version
-->

        <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 target="pattern" name="slant" compare="not_eq">
                        <const>roman</const>
                </test>
                <!-- multiply the matrix to slant the font -->
                <edit name="matrix" mode="assign">
                        <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 name="slant" mode="assign">
                        <const>oblique</const>
                </edit>
        </match>

<!--
Add by [email protected]
Artificial bold for fonts without a bold version.
-->
        <match target="font">
                <!-- check to see if the pattern requested > "medium" -->
                <test target="pattern" name="weight" compare="more">
                        <const>medium</const>
                </test>
                <!-- pretend the font is bold now -->
                <edit name="weight" mode="assign">
                        <const>bold</const>
                </edit>
        </match>

<!--
  Add by [email protected]
  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 [email protected]
  Enable "hinting & autohint" for all fonts.
-->
        <match target="font">
                <test name="family" compare="eq">
                        <string>SimSun</string>"or"<string>UniSun</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>

<!--
  Add by [email protected]
  If you don't want to use emdebedbitmap first.
  you can set this "embed" with false.
        <match target="font">
                <edit name="embed" mode="assign">
                        <bool>false</bool>
                </edit>
        </match>
-->

        <config>
<!--
  These are the default Unicode chars that are expected to be blank
  in fonts.  All other blank chars are assumed to be broken and
  won't appear in the resulting charsets
-->
                <blank>
                        <int>0x0020</int>        <!-- SPACE -->
                        <int>0x00a0</int>        <!-- NO-BREAK SPACE -->
                        <int>0x00ad</int>        <!-- SOFT HYPHEN -->
                        <int>0x115f</int>        <!-- HANGUL CHOSEONG FILLER -->
                        <int>0x1160</int>        <!-- HANGUL JUNGSEONG FILLER -->
                        <int>0x1680</int>        <!-- OGHAM SPACE MARK -->
                        <int>0x2000</int>        <!-- EN QUAD -->
                        <int>0x2001</int>        <!-- EM QUAD -->
                        <int>0x2002</int>        <!-- EN SPACE -->
                        <int>0x2003</int>        <!-- EM SPACE -->
                        <int>0x2004</int>        <!-- THREE-PER-EM SPACE -->
                        <int>0x2005</int>        <!-- FOUR-PER-EM SPACE -->
                        <int>0x2006</int>        <!-- SIX-PER-EM SPACE -->
                        <int>0x2007</int>        <!-- FIGURE SPACE -->
                        <int>0x2008</int>        <!-- PUNCTUATION SPACE -->
                        <int>0x2009</int>        <!-- THIN SPACE -->
                        <int>0x200a</int>        <!-- HAIR SPACE -->
                        <int>0x200b</int>        <!-- ZERO WIDTH SPACE -->
                        <int>0x200c</int>        <!-- ZERO WIDTH NON-JOINER -->
                        <int>0x200d</int>        <!-- ZERO WIDTH JOINER -->
                        <int>0x200e</int>        <!-- LEFT-TO-RIGHT MARK -->
                        <int>0x200f</int>        <!-- RIGHT-TO-LEFT MARK -->
                        <int>0x2028</int>        <!-- LINE SEPARATOR -->
                        <int>0x2029</int>        <!-- PARAGRAPH SEPARATOR -->
                        <int>0x202a</int>        <!-- LEFT-TO-RIGHT EMBEDDING -->
                        <int>0x202b</int>        <!-- RIGHT-TO-LEFT EMBEDDING -->
                        <int>0x202c</int>        <!-- POP DIRECTIONAL FORMATTING -->
                        <int>0x202d</int>        <!-- LEFT-TO-RIGHT OVERRIDE -->
                        <int>0x202e</int>        <!-- RIGHT-TO-LEFT OVERRIDE -->
                        <int>0x202f</int>        <!-- NARROW NO-BREAK SPACE -->
                        <int>0x205f</int>        <!-- MEDIUM MATHEMATICAL SPACE -->
                        <int>0x2060</int>        <!-- WORD JOINER -->
                        <int>0x2061</int>        <!-- FUNCTION APPLICATION -->
                        <int>0x2062</int>        <!-- INVISIBLE TIMES -->
                        <int>0x2063</int>        <!-- INVISIBLE SEPARATOR -->
                        <int>0x206A</int>        <!-- INHIBIT SYMMETRIC SWAPPING -->
                        <int>0x206B</int>        <!-- ACTIVATE SYMMETRIC SWAPPING -->
                        <int>0x206C</int>        <!-- INHIBIT ARABIC FORM SHAPING -->
                        <int>0x206D</int>        <!-- ACTIVATE ARABIC FORM SHAPING -->
                        <int>0x206E</int>        <!-- NATIONAL DIGIT SHAPES -->
                        <int>0x206F</int>        <!-- NOMINAL DIGIT SHAPES -->
                        <int>0x3000</int>        <!-- IDEOGRAPHIC SPACE -->
                        <int>0x3164</int>        <!-- HANGUL FILLER -->
                        <int>0xfeff</int>        <!-- ZERO WIDTH NO-BREAK SPACE -->
                        <int>0xffa0</int>        <!-- HALFWIDTH HANGUL FILLER -->
                        <int>0xfff9</int>        <!-- INTERLINEAR ANNOTATION ANCHOR -->
                        <int>0xfffa</int>        <!-- INTERLINEAR ANNOTATION SEPARATOR -->
                        <int>0xfffb</int>        <!-- INTERLINEAR ANNOTATION TERMINATOR -->
                </blank>
<!--
  Rescan configuration every 30 seconds when FcFontSetList is called
-->
                <rescan>
                        <int>30</int>
                </rescan>
        </config>

</fontconfig>

[/code:1]


下面是我的local.conf文件

[code:1]
<?xml version="1.0"?>
<!DOCTYPE fontconfig SYSTEM "fonts.dtd">
<fontconfig>
<!-- Uncomment below to enable bitmapped fonts -->
<!--
  <dir>/usr/X11R6/lib/X11/fonts</dir>
-->
<!-- Uncomment below to 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>

<!--
  Enable "hinting & autohint" for all fonts.
-->
        <match target="font">
                <edit name="autohint" mode="assign">
                        <bool>true</bool>
                </edit>
        </match>
<!--

-->
        <match target="font">
                <test qual="any" name="family">
                        <string>SimSun</string>
                </test>
                <test name="pixelsize" compare="more_eq">
                        <int>8</int>
                </test>
                <test name="pixelsize" compare="less_eq">
                        <int>16</int>
                </test>
                <edit name="antialias" mode="assign">
                        <bool>false</bool>
                </edit>
        </match>

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

<!--
-->
        <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>

<!-- Not use or 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>
<!--
Try binding Bitstream Vera Sans to SimSun for better English fonts
-->

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

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


<!--
binding Bitstream Vera Sans Mono to AR PL SungtiL 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>

<!--
bingding Bitstream Vera Sans to AR PL Kaitim GB
-->

<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>
        <match target="font">
                <test qual="any" name="family">
                        <string>AR PL Kaitim GB</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>

<!--
bingding Bitstream Vera Sans to sans-serif
-->

<match target="pattern">
        <test qual="any" name="family">
                <string>sans-serif</string>
        </test>
        <edit name="family" mode="append" 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>
[/code:1]

需要在下面的目录有这些字体:

[code:1]
ls /usr/share/fonts/truetype/idealinux/
fonts.cache-1  fonts.scale   tahoma.ttf    verdanai.ttf
fonts.dir      simsun.ttf    unisun.ttf    verdana.ttf
fonts.dir~     tahomabd.ttf  verdanab.ttf  verdanaz.ttf
[/code:1]

最后是我的fonts.dir文件,其实完全没有什么用

[code:1]
95
simsun.ttf -misc-SimSun-medium-r-normal--0-0-0-0-c-0-gb2312.1980-0
simsun.ttf -misc-SimSun-medium-r-normal--0-0-0-0-c-0-gbk-0
simsun.ttf -misc-SimSun-medium-r-normal--0-0-0-0-c-0-ibm-cp850
simsun.ttf -misc-SimSun-medium-r-normal--0-0-0-0-c-0-koi8-r
simsun.ttf -misc-SimSun-medium-r-normal--0-0-0-0-c-0-iso10646-1
unisun.ttf -misc-UniSun-medium-r-normal--0-0-0-0-c-0-gb2312.1980-0
unisun.ttf -misc-UniSun-medium-r-normal--0-0-0-0-c-0-gbk-0
unisun.ttf -misc-UniSun-medium-r-normal--0-0-0-0-c-0-ibm-cp850
unisun.ttf -misc-UniSun-medium-r-normal--0-0-0-0-c-0-koi8-r
unisun.ttf -misc-UniSun-medium-r-normal--0-0-0-0-c-0-iso10646-1
simsun.ttf -misc-fixed-medium-r-normal--0-0-0-0-c-0-gb2312.1980-0
simsun.ttf -misc-fixed-medium-r-normal--0-0-0-0-c-0-gbk-0
ai=0.2:simsun.ttf -misc-fixed-medium-o-normal--0-0-0-0-c-0-gb2312.1980-0
ai=0.4:simsun.ttf -misc-fixed-medium-i-normal--0-0-0-0-c-0-gb2312.1980-0
ai=-0.4:simsun.ttf -misc-fixed-medium-ri-normal--0-0-0-0-c-0-gb2312.1980-0
ai=-0.2:simsun.ttf -misc-fixed-medium-ro-normal--0-0-0-0-c-0-gb2312.1980-0
ai=0.2:simsun.ttf -misc-SimSun-medium-o-normal--0-0-0-0-c-0-gb2312.1980-0
ai=0.4:simsun.ttf -misc-SimSun-medium-i-normal--0-0-0-0-c-0-gb2312.1980-0
ai=-0.4:simsun.ttf -misc-SimSun-medium-ri-normal--0-0-0-0-c-0-gb2312.1980-0
ai=-0.2:simsun.ttf -misc-SimSun-medium-ro-normal--0-0-0-0-c-0-gb2312.1980-0
ai=0.2:unisun.ttf -misc-UniSun-medium-o-normal--0-0-0-0-c-0-gb2312.1980-0
ai=0.4:unisun.ttf -misc-UniSun-medium-i-normal--0-0-0-0-c-0-gb2312.1980-0
ai=-0.4:unisun.ttf -misc-UniSun-medium-ri-normal--0-0-0-0-c-0-gb2312.1980-0
ai=-0.2:unisun.ttf -misc-UniSun-medium-ro-normal--0-0-0-0-c-0-gb2312.1980-0
ab=y:simsun.ttf -misc-fixed-bold-r-normal--0-0-0-0-c-0-gb2312.1980-0
ai=0.2:ab=y:simsun.ttf -misc-fixed-bold-o-normal--0-0-0-0-c-0-gb2312.1980-0
ai=0.4:ab=y:simsun.ttf -misc-fixed-bold-i-normal--0-0-0-0-c-0-gb2312.1980-0
ai=-0.4:ab=y:simsun.ttf -misc-fixed-bold-ri-normal--0-0-0-0-c-0-gb2312.1980-0
ai=-0.2:ab=y:simsun.ttf -misc-fixed-bold-ro-normal--0-0-0-0-c-0-gb2312.1980-0
ab=y:simsun.ttf -misc-SimSun-bold-r-normal--0-0-0-0-c-0-gb2312.1980-0
ai=0.2:ab=y:simsun.ttf -misc-SimSun-bold-o-normal--0-0-0-0-c-0-gb2312.1980-0
ai=0.4:ab=y:simsun.ttf -misc-SimSun-bold-i-normal--0-0-0-0-c-0-gb2312.1980-0
ai=-0.4:ab=y:simsun.ttf -misc-SimSun-bold-ri-normal--0-0-0-0-c-0-gb2312.1980-0
ai=-0.2:ab=y:simsun.ttf -misc-SimSun-bold-ro-normal--0-0-0-0-c-0-gb2312.1980-0
ab=y:unisun.ttf -misc-UniSun-bold-r-normal--0-0-0-0-c-0-gb2312.1980-0
ai=0.2:ab=y:unisun.ttf -misc-UniSun-bold-o-normal--0-0-0-0-c-0-gb2312.1980-0
ai=0.4:ab=y:unisun.ttf -misc-UniSun-bold-i-normal--0-0-0-0-c-0-gb2312.1980-0
ai=-0.4:ab=y:unisun.ttf -misc-UniSun-bold-ri-normal--0-0-0-0-c-0-gb2312.1980-0
ai=-0.2:ab=y:unisun.ttf -misc-UniSun-bold-ro-normal--0-0-0-0-c-0-gb2312.1980-0
ai=0.2:simsun.ttf -misc-fixed-medium-o-normal--0-0-0-0-c-0-gbk-0
ai=0.4:simsun.ttf -misc-fixed-medium-i-normal--0-0-0-0-c-0-gbk-0
ai=-0.4:simsun.ttf -misc-fixed-medium-ri-normal--0-0-0-0-c-0-gbk-0
ai=-0.2:simsun.ttf -misc-fixed-medium-ro-normal--0-0-0-0-c-0-gbk-0
ai=0.2:simsun.ttf -misc-SimSun-medium-o-normal--0-0-0-0-c-0-gbk-0
ai=0.4:simsun.ttf -misc-SimSun-medium-i-normal--0-0-0-0-c-0-gbk-0
ai=-0.4:simsun.ttf -misc-SimSun-medium-ri-normal--0-0-0-0-c-0-gbk-0
ai=-0.2:simsun.ttf -misc-SimSun-medium-ro-normal--0-0-0-0-c-0-gbk-0
ai=0.2:unisun.ttf -misc-UniSun-medium-o-normal--0-0-0-0-c-0-gbk-0
ai=0.4:unisun.ttf -misc-UniSun-medium-i-normal--0-0-0-0-c-0-gbk-0
ai=-0.4:unisun.ttf -misc-UniSun-medium-ri-normal--0-0-0-0-c-0-gbk-0
ai=-0.2:unisun.ttf -misc-UniSun-medium-ro-normal--0-0-0-0-c-0-gbk-0
ab=y:simsun.ttf -misc-fixed-bold-r-normal--0-0-0-0-c-0-gbk-0
ai=0.2:ab=y:simsun.ttf -misc-fixed-bold-o-normal--0-0-0-0-c-0-gbk-0
ai=0.4:ab=y:simsun.ttf -misc-fixed-bold-i-normal--0-0-0-0-c-0-gbk-0
ai=-0.4:ab=y:simsun.ttf -misc-fixed-bold-ri-normal--0-0-0-0-c-0-gbk-0
ai=-0.2:ab=y:simsun.ttf -misc-fixed-bold-ro-normal--0-0-0-0-c-0-gbk-0
ab=y:simsun.ttf -misc-SimSun-bold-r-normal--0-0-0-0-c-0-gbk-0
ai=0.2:ab=y:simsun.ttf -misc-SimSun-bold-o-normal--0-0-0-0-c-0-gbk-0
ai=0.4:ab=y:simsun.ttf -misc-SimSun-bold-i-normal--0-0-0-0-c-0-gbk-0
ai=-0.4:ab=y:simsun.ttf -misc-SimSun-bold-ri-normal--0-0-0-0-c-0-gbk-0
ai=-0.2:ab=y:simsun.ttf -misc-SimSun-bold-ro-normal--0-0-0-0-c-0-gbk-0
ab=y:unisun.ttf -misc-UniSun-bold-r-normal--0-0-0-0-c-0-gbk-0
ai=0.2:ab=y:unisun.ttf -misc-UniSun-bold-o-normal--0-0-0-0-c-0-gbk-0
ai=0.4:ab=y:unisun.ttf -misc-UniSun-bold-i-normal--0-0-0-0-c-0-gbk-0
ai=-0.4:ab=y:unisun.ttf -misc-UniSun-bold-ri-normal--0-0-0-0-c-0-gbk-0
ai=-0.2:ab=y:unisun.ttf -misc-UniSun-bold-ro-normal--0-0-0-0-c-0-gbk-0
tahoma.ttf -microsoft-Tahoma-medium-r-normal--0-0-0-0-p-0-urdunaqsh-0
tahoma.ttf -microsoft-Tahoma-medium-r-normal--0-0-0-0-p-0-mulearabic-2
tahoma.ttf -microsoft-Tahoma-medium-r-normal--0-0-0-0-p-0-mulearabic-1
tahoma.ttf -microsoft-Tahoma-medium-r-normal--0-0-0-0-p-0-mulearabic-0
tahoma.ttf -microsoft-Tahoma-medium-r-normal--0-0-0-0-p-0-tcvn-5712
tahoma.ttf -microsoft-Tahoma-medium-r-normal--0-0-0-0-p-0-viscii1.1-1
tahoma.ttf -microsoft-Tahoma-medium-r-normal--0-0-0-0-p-0-microsoft-cp1256
tahoma.ttf -microsoft-Tahoma-medium-r-normal--0-0-0-0-p-0-microsoft-cp1255
tahoma.ttf -microsoft-Tahoma-medium-r-normal--0-0-0-0-p-0-tatar-cyr
tahoma.ttf -microsoft-Tahoma-medium-r-normal--0-0-0-0-p-0-microsoft-cp1251
tahoma.ttf -microsoft-Tahoma-medium-r-normal--0-0-0-0-p-0-koi8-u
tahoma.ttf -microsoft-Tahoma-medium-r-normal--0-0-0-0-p-0-koi8-r
tahoma.ttf -microsoft-Tahoma-medium-r-normal--0-0-0-0-p-0-iso8859-16
tahoma.ttf -microsoft-Tahoma-medium-r-normal--0-0-0-0-p-0-iso8859-15
tahoma.ttf -microsoft-Tahoma-medium-r-normal--0-0-0-0-p-0-iso8859-14
tahoma.ttf -microsoft-Tahoma-medium-r-normal--0-0-0-0-p-0-iso8859-13
tahoma.ttf -microsoft-Tahoma-medium-r-normal--0-0-0-0-p-0-tis620-2
tahoma.ttf -microsoft-Tahoma-medium-r-normal--0-0-0-0-p-0-tis620-0
tahoma.ttf -microsoft-Tahoma-medium-r-normal--0-0-0-0-p-0-tis620.2533-1
tahoma.ttf -microsoft-Tahoma-medium-r-normal--0-0-0-0-p-0-iso8859-10
tahoma.ttf -microsoft-Tahoma-medium-r-normal--0-0-0-0-p-0-iso8859-9
tahoma.ttf -microsoft-Tahoma-medium-r-normal--0-0-0-0-p-0-iso8859-8
tahoma.ttf -microsoft-Tahoma-medium-r-normal--0-0-0-0-p-0-iso8859-7
tahoma.ttf -microsoft-Tahoma-medium-r-normal--0-0-0-0-p-0-iso8859-6
tahoma.ttf -microsoft-Tahoma-medium-r-normal--0-0-0-0-p-0-iso8859-5
tahoma.ttf -microsoft-Tahoma-medium-r-normal--0-0-0-0-p-0-iso8859-4
tahoma.ttf -microsoft-Tahoma-medium-r-normal--0-0-0-0-p-0-iso8859-3
tahoma.ttf -microsoft-Tahoma-medium-r-normal--0-0-0-0-p-0-iso8859-2
tahoma.ttf -microsoft-Tahoma-medium-r-normal--0-0-0-0-p-0-iso8859-1

[/code:1]


我的字体配置信息

留个名,以后好找
回复

使用道具 举报

发表于 2004-12-28 00:28:01 | 显示全部楼层
atfa老大:
   你的fanx是否就是这样做出来的,我是直接copy了你用的字体,好用啊!谢谢.....
回复

使用道具 举报

发表于 2004-12-28 09:59:30 | 显示全部楼层
spring@fans, fanx差不多也是这么做的

不过kde喜欢自己重建fonts.conf

很不爽

你copy了我的字体还是字体的配置?
回复

使用道具 举报

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

本版积分规则

GMT+8, 2024-11-8 00:40 , Processed in 0.043532 second(s), 15 queries .

© 2021 Powered by Discuz! X3.5.

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