summaryrefslogtreecommitdiff
path: root/testing/fontconfig/fontconfig.install
diff options
context:
space:
mode:
Diffstat (limited to 'testing/fontconfig/fontconfig.install')
-rw-r--r--testing/fontconfig/fontconfig.install39
1 files changed, 39 insertions, 0 deletions
diff --git a/testing/fontconfig/fontconfig.install b/testing/fontconfig/fontconfig.install
new file mode 100644
index 000000000..3a0ca573b
--- /dev/null
+++ b/testing/fontconfig/fontconfig.install
@@ -0,0 +1,39 @@
+post_install() {
+ cat << _EOF
+
+ Fontconfig configuration is done via /etc/fonts/conf.avail and conf.d.
+ Read /etc/fonts/conf.d/README for more information.
+
+ Configuration via /etc/fonts/local.conf is still possible,
+ but is no longer recommended for options available in conf.avail.
+
+ Main systemwide configuration should be done by symlinks
+ (especially for autohinting, sub-pixel and lcdfilter):
+
+ cd /etc/fonts/conf.d
+ ln -s ../conf.avail/XX-foo.conf
+
+ Check also https://wiki.archlinux.org/index.php/Font_Configuration
+ and https://wiki.archlinux.org/index.php/Fonts.
+
+_EOF
+
+ echo -n "updating font cache... "
+ /usr/bin/fc-cache -f
+ echo "done."
+}
+
+post_upgrade() {
+ echo -n "updating font cache... "
+ /usr/bin/fc-cache -f
+ echo "done."
+}
+
+post_remove() {
+ cat << _EOF
+
+ Check for dead symlinks and leftover files
+ in /etc/fonts/conf.d/
+
+_EOF
+}