标题:[求助]哪里有字体设置命令详解
取消只看楼主
与梦者
Rank: 1
等 级:新手上路
帖 子:116
专家分:0
注 册:2007-10-5
 问题点数:0 回复次数:3 
[求助]哪里有字体设置命令详解

<fontconfig>

<alias>

<family>serif</family>

<prefer>

<family>Bitstream Vera Serif</family>
<family>SimSun</family>
<family>DejaVu Serif</family>
<family>AR PL ShanHeiSun Uni</family>
<family>AR PL ZenKai Uni</family>

</prefer>

</alias>

<alias>

<family>sans-serif</family>

<prefer>

<family>Bitstream Vera Sans</family>
<family>Simsun</family>
<family>DejaVu Sans</family>
<family>AR PL ShanHeiSun Uni</family>
<family>AR PL ZenKai Uni</family>

</prefer>

</alias>


<alias>

<family>monospace</family>

<prefer>

<family>Bitstream Vera Sans Mono</family>
<family>Simsun</family>
<family>DejaVu Sans Mono</family>
<family>AR PL ShanHeiSun Uni</family>
<family>AR PL ZenKai Uni</family>

</prefer>

</alias>


<match target="font" >

<test name="family" compare="contains" >
<string>SimSun</string>
<string>Song</string>
<string>Sun</string>
<string>Kai</string>
<string>Ming</string>
</test>
<test name="weight" compare="less_eq">
<int>100</int>
</test>

<test compare="more_eq" target="pattern" name="weight" >

<int>180</int>

</test>

<edit mode="assign" name="embolden" >

<bool>true</bool>

</edit>

</match>

<match target="font" >
<test name="family" compare="contains" >
<string>SimSun</string>
<string>宋体</string>
<string>宋体-18030</string>
<string>Song</string>
<string>Sun</string>
<string>Kai</string>
<string>Ming</string>
<string>黑体</string>
<string>新宋体</string>
<string>新宋体-18030</string>
<string>楷体_GB2312</string>
<string>仿宋_GB2312</string>
<string>隶体</string>
<string>SimSun-18030</string>
<string>SimHei</string>
<string>NSimSun</string>
<string>NSimSun-18030</string>
<string>KaiTi_GB2312</string>
<string>FangSong_GB2312</string>
<string>LiSu</string>
</test>

<edit name="globaladvance">

<bool>false</bool>

</edit>

<edit name="spacing">

<int>0</int>

</edit>

<edit name="hinting">

<bool>true</bool>

</edit>

<edit name="autohint">

<bool>false</bool>

</edit>

<edit name="antialias" mode="assign">

<bool>true</bool>

</edit>

<test name="pixelsize" compare="more_eq">

<int>12</int>

</test>
<test name="pixelsize" compare="less_eq">

<int>24</int>

</test>
<edit name="antialias" mode="assign" >

<bool>false</bool>

</edit>
</match>

</fontconfig>

这些命令代表什么意思,哪里有这方面详细的教程,资料
另外还有其它
sudo mkfontscale
sudo mkfontdir
sudo fc-cache

搜索更多相关主题的帖子: 详解 字体 命令 
2007-10-14 07:49
与梦者
Rank: 1
等 级:新手上路
帖 子:116
专家分:0
注 册:2007-10-5
得分:0 

根据网上资料字体已设置好了,但我想学习一下上面代码的具体是什么意思
如下面这段是什么意思

[QUOTE]<match target="font" >
<test name="family" compare="contains" >
<string>SimSun</string>
<string>宋体</string>
<string>宋体-18030</string>
<string>Song</string>
<string>Sun</string>
<string>Kai</string>
<string>Ming</string>
<string>黑体</string>
<string>新宋体</string>
<string>新宋体-18030</string>
<string>楷体_GB2312</string>
<string>仿宋_GB2312</string>
<string>隶体</string>
<string>SimSun-18030</string>
<string>SimHei</string>
<string>NSimSun</string>
<string>NSimSun-18030</string>
<string>KaiTi_GB2312</string>
<string>FangSong_GB2312</string>
<string>LiSu</string>
</test>
<edit name="globaladvance">
<bool>false</bool>
</edit>
<edit name="spacing">
<int>0</int>
</edit>
<edit name="hinting">
<bool>true</bool>
</edit>
<edit name="autohint">
<bool>false</bool>
</edit>
<edit name="antialias" mode="assign">
<bool>true</bool>
</edit>
<test name="pixelsize" compare="more_eq">
<int>12</int>
</test>
<test name="pixelsize" compare="less_eq">
<int>24</int>
</test>
<edit name="antialias" mode="assign" >
<bool>false</bool>
</edit>
</match> [/QUOTE]


偶没学编程,也许本身就是一个错。。。
2007-10-14 14:40
与梦者
Rank: 1
等 级:新手上路
帖 子:116
专家分:0
注 册:2007-10-5
得分:0 

偶没学编程,也许本身就是一个错。。。
2007-10-15 01:26
与梦者
Rank: 1
等 级:新手上路
帖 子:116
专家分:0
注 册:2007-10-5
得分:0 
以下是引用lthiy在2007-10-15 9:29:59的发言:
楼主找的是什么的代码啊
不象是和linux有关的啊

是ubuntu 7.04 的字体设置,
刚装完ubuntu字体难看,还发虚不实,这是字体设置部分代码。


偶没学编程,也许本身就是一个错。。。
2007-10-15 13:37



参与讨论请移步原网站贴子:https://bbs.bccn.net/thread-177428-1-1.html




关于我们 | 广告合作 | 编程中国 | 清除Cookies | TOP | 手机版

编程中国 版权所有,并保留所有权利。
Powered by Discuz, Processed in 0.394680 second(s), 8 queries.
Copyright©2004-2025, BCCN.NET, All Rights Reserved