summaryrefslogtreecommitdiff
path: root/fonts.conf.in
diff options
context:
space:
mode:
authorAkira TAGOH <akira@tagoh.org>2012-03-12 19:18:19 +0900
committerAkira TAGOH <akira@tagoh.org>2012-05-18 11:12:50 +0900
commit8c255fb185d5651b57380b0a9443001e8051b29d (patch)
treec04baaed6aa13bbb1c1fd50dc487b7f8b7d66d19 /fonts.conf.in
parentbc4517d8e5af8f31821ec8d9990765dad2867dd4 (diff)
Bug 20411 - fontconfig doesn't match FreeDesktop directories specs
Allows reading configuration files, fonts and cache files from the directories where the XDG Base Directory Specification defines. the old directories are still in the configuration files for the backward compatibility.
Diffstat (limited to 'fonts.conf.in')
-rw-r--r--fonts.conf.in4
1 files changed, 4 insertions, 0 deletions
diff --git a/fonts.conf.in b/fonts.conf.in
index 8f9fb88..6a8753d 100644
--- a/fonts.conf.in
+++ b/fonts.conf.in
@@ -25,6 +25,8 @@
<dir>@FC_DEFAULT_FONTS@</dir>
@FC_FONTPATH@
+ <dir prefix="xdg">fonts</dir>
+ <!-- the following element will be removed in the future -->
<dir>~/.fonts</dir>
<!--
@@ -71,6 +73,8 @@
<!-- Font cache directory list -->
<cachedir>@FC_CACHEDIR@</cachedir>
+ <cachedir prefix="xdg">fontconfig</cachedir>
+ <!-- the following element will be removed in the future -->
<cachedir>~/.fontconfig</cachedir>
<config>