]> git.openstreetmap.org Git - chef.git/blobdiff - cookbooks/tile/recipes/default.rb
Install Noto Sans Arabic UI from github if necessary
[chef.git] / 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"