aboutsummaryrefslogtreecommitdiffstats
path: root/fontconfig/fonts.conf
blob: aa9a78c13cefb59747cd568a4fef0fa252d0a3bb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
<?xml version="1.0"?>
<!DOCTYPE fontconfig SYSTEM "fonts.dtd">
<!-- ~/.config/fontconfig/fonts.conf
     http://www.freedesktop.org/software/fontconfig/fontconfig-user.html
-->

<fontconfig>
	<match target="font">
		<edit name="antialias" mode="assign"> <bool>true</bool></edit>
		<edit name="autohint" mode="assign"> <bool>false</bool></edit>
		<edit name="rgba" mode="assign"> <const>rgb</const></edit>
		<edit name="hinting" mode="assign"> <bool>true</bool></edit>
		<edit name="hintstyle" mode="assign"> <const>hintfull</const></edit>
		<edit name="lcdfilter" mode="assign"> <const>lcddefault</const></edit>
		<edit name="embeddedbitmap" mode="assign"> <bool>false</bool></edit>

		<!-- Hack for the not_contains file test to work even when the property
			 is missing -->
		<edit name="file" mode="append"> <string></string> </edit>
	</match>

	<match target="font">
		<test name="fontformat" compare="eq"> <string>Type 1</string> </test>
		<edit name="hintstyle"> <const>hintslight</const> </edit>
	</match>

	<selectfont>
		<rejectfont>
			<pattern> <patelt name="family"> <string>Nimbus Sans L</string> </patelt> </pattern>
			<pattern> <patelt name="family"> <string>Nimbus Mono L</string> </patelt> </pattern>
			<pattern> <patelt name="family"> <string>URW Palladio L</string> </patelt> </pattern>
			<pattern> <patelt name="family"> <string>Clean</string> </patelt> </pattern>
			<pattern> <patelt name="family"> <string>FreeSans</string> </patelt> </pattern>
		</rejectfont>
	</selectfont>

	<!-- Re-enable embedded bitmaps for CJK fonts -->
	<match target="font">
		<test name="lang" compare="contains"> <string>ja</string> </test>
		<edit name="embeddedbitmap"> <bool>true</bool> </edit>
	</match>
	<match target="font">
		<test name="lang" compare="contains"> <string>ko</string> </test>
		<edit name="embeddedbitmap"> <bool>true</bool> </edit>
	</match>
	<match target="font">
		<test name="lang" compare="contains"> <string>zh</string> </test>
		<edit name="embeddedbitmap"> <bool>true</bool> </edit>
	</match>

	<!-- Firefox download fonts -->
	<match target="font">
		<test name="family" compare="contains"> <string>@font-face:</string> </test>
		<test name="file" qual="all" compare="not_contains"> <string>/</string> </test>
		<test name="fontformat" compare="eq"> <string>TrueType</string> </test>
		<edit name="autohint" mode="assign"> <bool>true</bool> </edit>
		<edit name="hintstyle" mode="assign"> <const>hintslight</const> </edit>
	</match>
</fontconfig>
<!-- vim: set ft=xml -->