summarylogtreecommitdiffstats
path: root/fontconfig-noaa.conf
blob: eabde0789e10a7589f975ef9222dfaa66a7c2f63 (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
<?xml version="1.0"?>
<!DOCTYPE fontconfig SYSTEM "fonts.dtd">
<fontconfig>
	<!--
		Antialiased TTF Unifont is a bit blurry at the "native" pixel size,
		which may strain eyes. Disable antialiasing in this case.
	-->

	<match target="font">
		<test name="file" compare="contains">
			<string>unifont</string>
		</test>
		<test name="file" compare="contains">
			<string>.ttf</string>
		</test>
		<test name="pixelsize" compare="eq" qual="any">
			<double>16</double>
		</test>
		<test target="pattern" name="slant" compare="eq">
			<const>roman</const>
		</test>
		<edit name="antialias" mode="assign">
			<bool>false</bool>
		</edit>
	</match>

	<!--
		Hinting uglifies the TTF Unifont a lot. Disable it.
		(For some reason it never happened before 7.0.04.)
		Unfortunately, libcairo will not respect this setting without being patched.
		See <https://bugs.freedesktop.org/show_bug.cgi?id=11838>.
	-->
	<match target="font">
		<test name="file" compare="contains">
			<string>unifont</string>
		</test>
		<test name="file" compare="contains">
			<string>.ttf</string>
		</test>
		<edit name="hinting" mode="assign">
			<bool>false</bool>
		</edit>
		<edit name="autohint" mode="assign">
			<bool>false</bool>
		</edit>
		<edit name="hintstyle" mode="assign">
			<const>hintnone</const>
		</edit>
	</match>
</fontconfig>