summarylogtreecommitdiffstats
path: root/fontconfig-ttf.hook
diff options
context:
space:
mode:
Diffstat (limited to 'fontconfig-ttf.hook')
-rw-r--r--fontconfig-ttf.hook11
1 files changed, 11 insertions, 0 deletions
diff --git a/fontconfig-ttf.hook b/fontconfig-ttf.hook
new file mode 100644
index 000000000000..24d3596b8392
--- /dev/null
+++ b/fontconfig-ttf.hook
@@ -0,0 +1,11 @@
+[Trigger]
+Type = File
+Operation = Install
+Operation = Upgrade
+Operation = Remove
+Target = usr/share/fonts/TTF/*
+
+[Action]
+Description = Updating TTF fonts...
+When = PostTransaction
+Exec = /bin/sh -c '/usr/bin/fc-cache -fs; /usr/bin/mkfontscale usr/share/fonts/TTF; /usr/bin/mkfontdir usr/share/fonts/TTF'