diff --git a/deploy.firebase.sh b/deploy.firebase.sh index 969d36a..53a4d28 100755 --- a/deploy.firebase.sh +++ b/deploy.firebase.sh @@ -16,6 +16,7 @@ rm -rf $outdir mkdir -p $outdir/public cp ./open-resume.com.d/resume.html.2 $outdir/public/index.html cp ./open-resume.com.d/resume.pdf $outdir/public/BreeLaPointeResume.pdf +cp -r ./open-resume.com.d/fonts $outdir/public/ echo firebase uses squeaky2x3@gmail.com firebase login diff --git a/open-resume.com.d/clean_resume_html.sh b/open-resume.com.d/clean_resume_html.sh index 241549c..9133b1d 100755 --- a/open-resume.com.d/clean_resume_html.sh +++ b/open-resume.com.d/clean_resume_html.sh @@ -12,8 +12,24 @@ cat resume.html \ | sed 's/margin-top: 12pt;/margin-top: 17pt;/g' \ | sed 's/margin-top: 8pt;/margin-top: 12pt;/g' \ | sed 's/margin-top: 6pt;/margin-top: 10pt;/g' \ - | sed 's#"/fonts/#"https://www.open-resume.com/fonts/#g' \ - | sed 's#]*as="font"[^>]*/fonts/[^L][^>]*>##g' \ + | sed "s#]*as=\"font\"[^>]*/fonts/[^${font_family:0:1}][^>]*>##g" \ + | sed "s#]*as=\"font\"[^>]*/fonts/${font_family:0:1}[^${font_family:1:1}][^>]*>##g" \ + | sed "s#/fonts/#./fonts/#g" \ > resume.html.2 \ || rm resume.html.2 +for font_file in $( + cat resume.html.2 \ + | grep -o 'href="./fonts/[^"]*' \ + | sed 's#.*"./##' +); do + if [ ! -f "$font_file" ]; then + mkdir -p ./${font_file%/*}/ + curl -sS -L https://www.open-resume.com/$font_file > $font_file + fi +done + + +# | sed 's#"/fonts/#"https://www.open-resume.com/fonts/#g' \ + + diff --git a/open-resume.com.d/fonts/Lato-Bold.ttf b/open-resume.com.d/fonts/Lato-Bold.ttf new file mode 100644 index 0000000..f607eca Binary files /dev/null and b/open-resume.com.d/fonts/Lato-Bold.ttf differ diff --git a/open-resume.com.d/fonts/Lato-Regular.ttf b/open-resume.com.d/fonts/Lato-Regular.ttf new file mode 100644 index 0000000..18b1003 Binary files /dev/null and b/open-resume.com.d/fonts/Lato-Regular.ttf differ diff --git a/open-resume.com.d/resume.html.2 b/open-resume.com.d/resume.html.2 index de1ed4b..d4b2205 100755 --- a/open-resume.com.d/resume.html.2 +++ b/open-resume.com.d/resume.html.2 @@ -1,27 +1,27 @@
- - + + + + - -