Skip to content

Commit c1ad3f1

Browse files
[DSW-197] Update leaflet for 2019 (#6)
1 parent b842a2b commit c1ad3f1

File tree

3 files changed

+8148
-2975
lines changed

3 files changed

+8148
-2975
lines changed

build.sh

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#!/bin/bash
22
# Suggested distro: Ubuntu/Debian
33
# Dependencies: wget, inkscape, pdftk
4-
# Marek Suchanek @ 2018
4+
# Marek Suchanek @ 2019
55
if [ -z "$1" ]; then
66
echo "Specify the name of output file as argument"
77
exit 1
@@ -14,10 +14,9 @@ echo "------------------------------------------------"
1414
echo "Installing fonts"
1515
mkdir ~/.fonts 2> /dev/null
1616
cd ~/.fonts
17-
wget -q https://www.wfonts.com/download/data/2014/11/28/corbel/corbel.zip
18-
unzip -o corbel.zip
19-
wget -q https://www.wfonts.com/download/data/2014/05/29/impact/impact.zip
20-
unzip -o impact.zip
17+
wget -q https://dl.1001fonts.com/roboto.zip
18+
unzip -o roboto.zip
19+
rm -rf Roboto-Black.ttf Roboto-BlackItalic.ttf
2120

2221
cd $PROJECT_ROOT
2322

@@ -27,7 +26,7 @@ mkdir -p _build/parts 2>/dev/null
2726
for SVG_FILE in $(ls *.svg);
2827
do
2928
PDF_FILE=$(echo $SVG_FILE | sed 's/\.svg$/\.pdf/')
30-
inkscape $SVG_FILE --export-pdf=_build/parts/$PDF_FILE
29+
inkscape $SVG_FILE --export-area-page --export-dpi=300 --export-pdf=_build/parts/$PDF_FILE
3130
done
3231
pdftk $(ls _build/parts/*.pdf) cat output _build/$FINAL
3332

0 commit comments

Comments
 (0)