分页: 1 / 1

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

发表于 : 2010-11-06 21:15
redlhl
如题 :em06
这个不会弄,这个必须得弄

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

发表于 : 2010-11-06 21:16
leeaman
这个....看看wiki自己写一个都不难吧?我只有一个中文字体,所以没有这个烦恼

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

发表于 : 2010-11-06 22:36
redlhl
这个....看看wiki自己写一个都不难吧?我只有一个中文字体,所以没有这个烦恼
wiki里面东西一大堆,想偷偷懒 :em02
这里面只是一些字体选择把,好像没有类似抗锯齿之类效果的设置
我的字体显示发虚,主要想解决这个问题

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

发表于 : 2010-11-06 23:08
wmpotato
里面应该有你需要的功能的,有些地方有些莫名其妙,可能还有些错,原谅我懒,因为没影响到我。 :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>


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

发表于 : 2010-11-07 15:22
redlhl
十分感谢 :em11

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

发表于 : 2010-11-07 15:54
tenzu
你们真是精溢求精啊

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

发表于 : 2010-11-07 16:58
HuntXu