]> git.openstreetmap.org Git - chef.git/commitdiff
Install Noto Sans Arabic UI from github if necessary
authorTom Hughes <tom@compton.nu>
Fri, 20 Oct 2017 18:05:45 +0000 (19:05 +0100)
committerTom Hughes <tom@compton.nu>
Fri, 20 Oct 2017 18:20:04 +0000 (19:20 +0100)
cookbooks/tile/recipes/default.rb

index 6cdf6190f33623bc8dde2b18cc42fed2f579375f..9ae3dfc93367f9693fafb03f5e26d25a5be880a5 100644 (file)
@@ -130,6 +130,16 @@ package "fonts-noto-unhinted"
 package "fonts-hanazono"
 package "ttf-unifont"
 
+["NotoSansArabicUI-Regular.ttf", "NotoSansArabicUI-Bold.ttf"].each do |font|
+  remote_file "/usr/share/fonts/truetype/noto/#{font}" do
+    action :create_if_missing
+    source "https://github.com/googlei18n/noto-fonts/raw/master/hinted/#{font}"
+    owner "root"
+    group "root"
+    mode 0o644
+  end
+end
+
 directory "/srv/tile.openstreetmap.org/cgi-bin" do
   owner "tile"
   group "tile"