From 80c95ec97141805a3eecf564b8594e40420a2184 Mon Sep 17 00:00:00 2001 From: Alex Cabal Date: Wed, 18 Mar 2020 16:17:04 -0500 Subject: [PATCH] When deploying an ebook, make adjustments for quirks in Ubuntu's SVG renderer --- scripts/deploy-ebook-to-www | 2 ++ 1 file changed, 2 insertions(+) diff --git a/scripts/deploy-ebook-to-www b/scripts/deploy-ebook-to-www index 4911835f..02e6b363 100755 --- a/scripts/deploy-ebook-to-www +++ b/scripts/deploy-ebook-to-www @@ -142,6 +142,8 @@ do # Build the cover image thumbnail git show HEAD:images/cover.jpg > "${imgWorkDir}/${urlSafeIdentifier}.jpg" git show HEAD:images/cover.svg > "${imgWorkDir}/${urlSafeIdentifier}.svg" + # The Ubuntu SVG renderer can't handle quotes around font names, so remove them before we process the cover. + sed -i "s/\"League Spartan\"/League Spartan/g" "${imgWorkDir}/${urlSafeIdentifier}.svg" sed -i "s/cover\.jpg/${urlSafeIdentifier}\.jpg/g" "${imgWorkDir}/${urlSafeIdentifier}.svg" cp "${imgWorkDir}/${urlSafeIdentifier}.svg" "${imgWorkDir}/${urlSafeIdentifier}@2x.svg"