Cyclosm: remove (deprecated) font warning in mapnik

This commit is contained in:
nobohan 2023-06-26 10:26:44 +02:00
parent 6488beaf79
commit 40a760e941

5
run.sh
View File

@ -23,6 +23,11 @@ function compileStyle() {
sed -i "s/.zip/.shp/g" ./cyclosm-cartocss-style/project.mml
# change dbname
sed -i 's/dbname: "osm"/dbname: "gis"/g' ./cyclosm-cartocss-style/project.mml
# remove some deprecated fonts
sed -i 's/, "unifont Medium", "Unifont Upper Medium"//g' ./cyclosm-cartocss-style/fonts.mss
sed -i 's/"Noto Sans Tibetan Regular",//g' ./cyclosm-cartocss-style/fonts.mss
sed -i 's/"Noto Sans Tibetan Bold",//g' ./cyclosm-cartocss-style/fonts.mss
sed -i 's/Noto Sans Syriac Eastern Regular/Noto Sans Syriac Regular/g' ./cyclosm-cartocss-style/fonts.mss
# carto build
carto cyclosm-cartocss-style/project.mml > mapnik.xml
}