From 04dd862d7ba2e8d240a7082c499ba51ebfe61680 Mon Sep 17 00:00:00 2001 From: Tim Starling Date: Fri, 9 Dec 2022 13:07:44 +1100 Subject: [PATCH] Bundle the font For performance, offline support and privacy. Cut down the CSS file from the package so that we only need to bundle the one font file, similar to what Google Fonts did. Ref https://openfontlicense.org/ofl-faq/ Ref https://software.sil.org/fonts/faq/ Closes https://github.com/jlfwong/speedscope/pull/412 Co-authored-by: Timo Tijhof --- assets/index.html | 2 +- assets/source-code-pro.css | 7 ++ assets/source-code-pro/LICENSE.md | 93 ++++++++++++++++++ .../SourceCodePro-Regular.ttf.woff2 | Bin 0 -> 52228 bytes scripts/build-release.sh | 4 + 5 files changed, 105 insertions(+), 1 deletion(-) create mode 100644 assets/source-code-pro.css create mode 100644 assets/source-code-pro/LICENSE.md create mode 100644 assets/source-code-pro/SourceCodePro-Regular.ttf.woff2 diff --git a/assets/index.html b/assets/index.html index 962822b2f..5b2b3f211 100644 --- a/assets/index.html +++ b/assets/index.html @@ -6,7 +6,7 @@ speedscope - +