From cced99fafa66a012da411cf53770ce1033dbfeb4 Mon Sep 17 00:00:00 2001 From: ed Date: Mon, 6 Sep 2021 01:04:12 +0200 Subject: [PATCH] replace SCP with Consolas on no-fnt repack --- scripts/make-sfx.sh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/scripts/make-sfx.sh b/scripts/make-sfx.sh index ad044a6c..d9654a2e 100755 --- a/scripts/make-sfx.sh +++ b/scripts/make-sfx.sh @@ -23,7 +23,7 @@ help() { exec cat <<'EOF' # (the fancy markdown editor) # # `no-fnt` saves ~9k by removing the source-code-pro font -# (browsers on MS-Windows look pretty bad without this) +# (browsers will try to use 'Consolas' instead) # # `no-dd` saves ~2k by removing the mouse cursor @@ -218,15 +218,15 @@ done [ $no_fnt ] && { rm -f copyparty/web/deps/scp.woff2 f=copyparty/web/ui.css - gzip -d "$f" - sed -r '/scp\.woff2/d' <$f >t + gzip -d "$f.gz" || true + sed -r "s/src:.*scp.*\)/src:local('Consolas')/" <$f >t tmv "$f" } [ $no_dd ] && { rm -rf copyparty/web/dd f=copyparty/web/browser.css - gzip -d "$f" + gzip -d "$f.gz" || true sed -r 's/(cursor: ?)url\([^)]+\), ?(pointer)/\1\2/; /[0-9]+% \{cursor:/d; /animation: ?cursor/d' <$f >t tmv "$f" }