fonts.conf.in 2.76 KB
Newer Older
Keith Packard's avatar
Keith Packard committed
1 2
<?xml version="1.0"?>
<!DOCTYPE fontconfig SYSTEM "fonts.dtd">
3
<!-- /etc/fonts/fonts.conf file to configure system font access -->
Keith Packard's avatar
Keith Packard committed
4
<fontconfig>
5 6 7 8 9
	<its:rules xmlns:its="http://www.w3.org/2005/11/its" version="1.0">
		<its:translateRule translate="no" selector="/fontconfig/*[not(self::description)]"/>
	</its:rules>

	<description>Default configuration file</description>
Keith Packard's avatar
Keith Packard committed
10

11
<!--
12 13 14 15
	DO NOT EDIT THIS FILE.
	IT WILL BE REPLACED WHEN FONTCONFIG IS UPDATED.
	LOCAL CHANGES BELONG IN 'local.conf'.

16 17 18
	The intent of this standard configuration file is to be adequate for
	most environments.  If you have a reasonably normal environment and
	have found problems with this configuration, they are probably
Keith Packard's avatar
Keith Packard committed
19 20
	things that others will also want fixed.  Please submit any
	problems to the fontconfig bugzilla system located at fontconfig.org
21

22
	Note that the normal 'make install' procedure for fontconfig is to
23 24 25
	replace any existing fonts.conf file with the new version.  Place
	any local customizations in local.conf which this file references.

26 27 28
	Keith Packard
-->

29
<!-- Font directory list -->
Keith Packard's avatar
Keith Packard committed
30

Keith Packard's avatar
Keith Packard committed
31 32
	<dir>@FC_DEFAULT_FONTS@</dir>
	@FC_FONTPATH@
33 34
	<dir prefix="xdg">fonts</dir>
	<!-- the following element will be removed in the future -->
35
	<dir>~/.fonts</dir>
Keith Packard's avatar
Keith Packard committed
36 37 38 39 40 41 42 43

<!--
  Accept deprecated 'mono' alias, replacing it with 'monospace'
-->
	<match target="pattern">
		<test qual="any" name="family">
			<string>mono</string>
		</test>
44
		<edit name="family" mode="assign" binding="same">
Keith Packard's avatar
Keith Packard committed
45 46 47 48
			<string>monospace</string>
		</edit>
	</match>

49 50 51 52 53 54 55
<!--
  Accept alternate 'sans serif' spelling, replacing it with 'sans-serif'
-->
	<match target="pattern">
		<test qual="any" name="family">
			<string>sans serif</string>
		</test>
56
		<edit name="family" mode="assign" binding="same">
57 58 59 60
			<string>sans-serif</string>
		</edit>
	</match>

Keith Packard's avatar
Keith Packard committed
61 62 63 64 65 66 67
<!--
  Accept deprecated 'sans' alias, replacing it with 'sans-serif'
-->
	<match target="pattern">
		<test qual="any" name="family">
			<string>sans</string>
		</test>
68
		<edit name="family" mode="assign" binding="same">
Keith Packard's avatar
Keith Packard committed
69 70 71
			<string>sans-serif</string>
		</edit>
	</match>
72 73 74 75 76 77 78 79 80 81 82
<!--
  Accept alternate 'system ui' spelling, replacing it with 'system-ui'
-->
	<match target="pattern">
		<test qual="any" name="family">
			<string>system ui</string>
		</test>
		<edit name="family" mode="assign" binding="same">
			<string>system-ui</string>
		</edit>
	</match>
Keith Packard's avatar
Keith Packard committed
83

84 85 86
<!--
  Load local system customization file
-->
87
	<include ignore_missing="yes">@CONFIGDIR@</include>
88

89 90 91
<!-- Font cache directory list -->

	<cachedir>@FC_CACHEDIR@</cachedir>
92 93
	<cachedir prefix="xdg">fontconfig</cachedir>
	<!-- the following element will be removed in the future -->
94 95
	<cachedir>~/.fontconfig</cachedir>

96 97 98 99 100 101 102 103
	<config>
<!--
  Rescan configuration every 30 seconds when FcFontSetList is called
 -->
		<rescan>
			<int>30</int>
		</rescan>
	</config>
Keith Packard's avatar
Keith Packard committed
104 105

</fontconfig>