求一个字体配置文件fonts.conf

其他Linux/Unix/BSD/OSX等发行版讨论
回复
redlhl
帖子: 334
注册时间: 2008-06-27 20:47

求一个字体配置文件fonts.conf

#1

帖子 redlhl » 2010-11-06 21:15

如题 :em06
这个不会弄,这个必须得弄
头像
leeaman
帖子: 30702
注册时间: 2007-02-02 18:14
系统: debian sid

Re: 求一个字体配置文件fonts.conf

#2

帖子 leeaman » 2010-11-06 21:16

这个....看看wiki自己写一个都不难吧?我只有一个中文字体,所以没有这个烦恼
醉了星星,醉月亮●●●●●The Long Way To Go(*^_^*)
redlhl
帖子: 334
注册时间: 2008-06-27 20:47

Re: 求一个字体配置文件fonts.conf

#3

帖子 redlhl » 2010-11-06 22:36

这个....看看wiki自己写一个都不难吧?我只有一个中文字体,所以没有这个烦恼
wiki里面东西一大堆,想偷偷懒 :em02
这里面只是一些字体选择把,好像没有类似抗锯齿之类效果的设置
我的字体显示发虚,主要想解决这个问题
头像
wmpotato
帖子: 264
注册时间: 2009-11-06 19:48

Re: 求一个字体配置文件fonts.conf

#4

帖子 wmpotato » 2010-11-06 23:08

里面应该有你需要的功能的,有些地方有些莫名其妙,可能还有些错,原谅我懒,因为没影响到我。 :em06 :em06

代码: 全选

<?xml version="1.0"?>
<!DOCTYPE fontconfig SYSTEM "fonts.dtd">
<fontconfig>
	<match>
		<test name="family">
			<string>sans-serif</string>
		</test>
		<edit name="family" mode="prepend" binding="strong">
			<string>DejaVu Sans Condensed</string>
			<string>宋体</string>
			<string>SimSun</string>
			<string>Droid Sans Fallback</string>
			<string>WenQuanYi Bitmap Song</string>
			<string>WenQuanYi Micro Hei</string>
			<string>WenQuanYi Zen Hei</string>
			<string>Liberation Sans</string>
		</edit>
	</match>
	<match>
		<test name="family">
			<string>serif</string>
		</test>
		<edit name="family" mode="prepend" binding="strong">
			<string>DejaVu Serif Condensed</string>
			<string>宋体</string>
			<string>WenQuanYi Bitmap Song</string>
			<string>WenQuanYi Zen Hei Sharp</string>
			<string>Bitstream Charter</string>
			<string>Droid Serif</string>
		</edit>
	</match>
	<match>
		<test name="family">
			<string>monospace</string>
		</test>
		<edit name="family" mode="prepend" binding="strong">
			<string>DejaVu Sans Mono</string>
			<string>WenQuanYi Zen Hei Mono</string>
			<string>WenQuanYi Micro Hei Mono</string>
			<string>WenQuanYi Zen Hei Sharp</string>
			<string>Liberation Sans Mono</string>
		</edit>
	</match>

	<match>
		<test name="family">
			<string>Courier New</string>
		</test>
		<edit name="family" mode="prepend" binding="strong">
			<string>Courier New</string>
			<string>SimSun</string>
		</edit>
	</match>

	<match>
		<test name="family">
			<string>Courier 10 Pitch</string>
		</test>
		<edit name="family" mode="prepend" binding="strong">
			<string>Courier 10 Pitch</string>
			<string>SimSun</string>
		</edit>
	</match>

	<match>
		<test name="family">
			<string>Century Schoolbook L</string>
		</test>
		<edit name="family" mode="prepend" binding="strong">
			<string>Century Schoolbook L</string>
			<string>SimSun</string>
		</edit>
	</match>

	<match>
		<test name="family">
			<string>Century Schoolbook L</string>
		</test>
		<edit name="family" mode="prepend" binding="strong">
			<string>Century Schoolbook L</string>
			<string>SimSun</string>
		</edit>
	</match>

	<match target = "font">
		<test compare = "eq" name = "family" qual = "any">
			<string>Tahoma</string>
			<string>Courier New</string>
			<string>Verdana</string>
		</test>
		<edit mode = "assign" name = "spacing">
			<int>0</int> 
		</edit>
		<edit mode = "assign" name = "hinting">
			<bool>true</bool>
		</edit>
		<edit mode = "assign" name = "hintstyle">
			<const>hintfull</const>
		</edit>
		<edit mode = "assign" name = "antialias">
			<bool>false</bool>
		</edit>
		<edit mode = "assign" name = "autohint">
			<bool>false</bool>
		</edit>
	</match>

	<match target = "font">
		<test compare = "eq" name = "family" qual = "any">
			<string>宋体</string>
			<string>SimSun</string>
			<string>新宋体</string>
			<string>NSimSun</string>
		</test>
		<test compare = "more_eq" name = "pixelsize">
			<double>10</double>
		</test>
		<test compare = "less_eq" name = "pixelsize">
			<double>16</double>
		</test>

		<edit mode = "assign" name = "hinting">
			<bool>true</bool>
		</edit>
		<edit mode = "assign" name = "hintstyle">
			<const>hintfull</const>
		</edit>
		<edit mode = "assign" name = "antialias">
			<bool>false</bool>
		</edit>
		<edit mode = "assign" name = "autohint">
			<bool>false</bool>
		</edit>
	</match>

	<match target = "font">
		<test compare = "eq" name = "family" qual = "any">
			<string>宋体</string>
			<string>SimSun</string>
			<string>新宋体</string>
			<string>NSimSun</string>
		</test>
		<test compare = "more_eq" name = "pixelsize">
			<double>17</double>
		</test>

		<edit mode = "assign" name = "hinting">
			<bool>true</bool>
		</edit>
		<edit mode = "assign" name = "hintstyle">
			<const>hintfull</const>
		</edit>
		<edit mode = "assign" name = "antialias">
			<bool>true</bool>
		</edit>
		<edit mode = "assign" name = "autohint">
			<bool>true</bool>
		</edit>
	</match>


	<match target = "font">
		<test compare = "eq" name = "family">
			<string>WenQuanYi Micro Hei Mono</string>
			<string>文泉驿等宽微米黑</string>
			<string>DejaVu Sans Mono</string>
			<string>DejaVu Sans</string>
			<string>DejaVu Serif</string>
			<string>monospace</string>
			<string>Monospace</string>
			<string>WenQuanYi ZenHei Mono</string>
			<string>文泉驿等宽正黑</string>
			<string>WenQuanYi Micro Hei</string>
			<string>文泉驿微米黑</string>
			<string>WenQuanYi ZenHei</string>
			<string>文泉驿正黑</string>
			<string>YaHei Consolas Hybrid</string>
			<string>微软雅黑</string>
			<string>Century Schoolbook L</string>
			<string>Droid Sans Fallback</string>
			<string>Envy Code R</string>
		</test>
		<edit name = "globaladvance"> <bool>true</bool> </edit>
		<edit name = "hinting"> <bool>true</bool> </edit>
		<edit name = "hintstyle"> <const>hintfull</const> </edit>
		<edit name = "antialias"> <bool>true</bool> </edit>
		<edit name = "autohint"> <bool>true</bool> </edit>
	</match>

	<match target = "font">
		<test compare = "eq" name = "family">
			<string>Monaco</string>
		</test>
		<edit name = "globaladvance"> <bool>true</bool> </edit>
		<edit name = "hinting"> <bool>false</bool> </edit>
		<edit name = "hintstyle"> <const>hintfull</const> </edit>
		<edit name = "antialias"> <bool>true</bool> </edit>
		<edit name = "autohint"> <bool>true</bool> </edit>
	</match>


	<match target = "font">
		<test name = "family">
			<string>Adobe 宋体 std</string>
		</test>
		<edit name = "spacing"> <int>0</int> </edit>
		<edit name = "globaladvance"> <bool>true</bool> </edit>
		<edit name = "hinting"> <bool>true</bool> </edit>
		<edit name = "hintstyle"> <const>hintfull</const> </edit>
		<edit name = "antialias"> <bool>true</bool> </edit>
		<edit name = "autohint"> <bool>false</bool> </edit>
	</match>


</fontconfig>

http://hi.baidu.com/wmpotato

Debian~Debian~Debian~~~
redlhl
帖子: 334
注册时间: 2008-06-27 20:47

Re: 求一个字体配置文件fonts.conf

#5

帖子 redlhl » 2010-11-07 15:22

十分感谢 :em11
头像
tenzu
论坛版主
帖子: 36924
注册时间: 2008-11-21 20:26

Re: 求一个字体配置文件fonts.conf

#6

帖子 tenzu » 2010-11-07 15:54

你们真是精溢求精啊
头像
HuntXu
帖子: 5776
注册时间: 2007-09-29 3:09

Re: 求一个字体配置文件fonts.conf

#7

帖子 HuntXu » 2010-11-07 16:58

HUNT Unfortunately No Talent...
回复