Skip to content

Commit 1b437e1

Browse files
committed
Fix font_dir of mapnik
OpenType fonts (OTF) are located in `/usr/share/fonts/opentype`, however, the font_dir of mapnik is `/usr/share/fonts/truetype` and mapnik is support OTF, it will cause mapnik can't find the OTFs (OTFs are used by openstreetmap-carto, e.g., Noto CJK JP).
1 parent acedcce commit 1b437e1

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

Dockerfile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -135,6 +135,7 @@ RUN mkdir -p /home/renderer/src \
135135

136136
# Configure renderd
137137
RUN sed -i 's/renderaccount/renderer/g' /usr/local/etc/renderd.conf \
138+
&& sed -i 's/\/truetype//g' /usr/local/etc/renderd.conf \
138139
&& sed -i 's/hot/tile/g' /usr/local/etc/renderd.conf
139140

140141
# Configure Apache

0 commit comments

Comments
 (0)