Fix missing fonts in splash.png and try to prevent graphics update happening with...
[dcpomatic.git] / graphics / update
index f649d8df80442dd5218a18752936473a204e10a9..5fc7aa519bf35b64968520e8b6d81e88e5744f71 100755 (executable)
@@ -12,7 +12,18 @@ if [ `basename $pwd` != "graphics" ]; then
     exit 1
 fi
 
+function required_font()
+{
+    check=$(fc-list | grep "$1")
+    if [ "$check" == "" ]; then
+        echo "Missing font $1"
+        exit 1
+    fi
+}
+
 svg_apps="dcpomatic2_kdm dcpomatic2_server dcpomatic2_batch dcpomatic2_player dcpomatic2_playlist dcpomatic2_disk"
+required_font "Libre Baskerville"
+
 
 if [ `uname -s` == "Darwin" ]; then
     # Convert OS X icons using OS X-only iconutil