From a374a93937cad27ae0f60068fd3841dc3d37f824 Mon Sep 17 00:00:00 2001 From: DocFast Subagent Date: Fri, 10 Apr 2026 11:13:26 +0200 Subject: [PATCH] fix(privacy): self-host Inter font, remove Google Fonts MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Drops all fonts.googleapis.com / fonts.gstatic.com references - Adds self-hosted woff2 under public/fonts/ - @font-face with font-display: swap - Test asserts no external font refs in generated HTML Closes GDPR contradiction: privacy policy promises 'no third-party tracking' and 'EU-hosted' while every page was leaking visitor IPs to Google (Munich District Court 2022 ruling, €100/visitor damages precedent). --- public/docs.html | 8 ++- public/examples.html | 7 ++- public/fonts/Inter-Bold.woff2 | Bin 0 -> 114840 bytes public/fonts/Inter-ExtraBold.woff2 | Bin 0 -> 114856 bytes public/fonts/Inter-Medium.woff2 | Bin 0 -> 114348 bytes public/fonts/Inter-Regular.woff2 | Bin 0 -> 111268 bytes public/fonts/Inter-SemiBold.woff2 | Bin 0 -> 114812 bytes public/impressum.html | 7 ++- public/index.html | 17 +++--- public/partials/_styles_base.html | 6 ++ public/privacy.html | 7 ++- public/src/examples.html | 1 - public/src/impressum.html | 1 - public/src/index.html | 9 ++- public/src/privacy.html | 1 - public/src/status.html | 1 - public/src/terms.html | 1 - public/status.html | 7 ++- public/terms.html | 7 ++- src/__tests__/no-google-fonts.test.ts | 82 ++++++++++++++++++++++++++ src/index.ts | 4 +- 21 files changed, 143 insertions(+), 23 deletions(-) create mode 100644 public/fonts/Inter-Bold.woff2 create mode 100644 public/fonts/Inter-ExtraBold.woff2 create mode 100644 public/fonts/Inter-Medium.woff2 create mode 100644 public/fonts/Inter-Regular.woff2 create mode 100644 public/fonts/Inter-SemiBold.woff2 create mode 100644 src/__tests__/no-google-fonts.test.ts diff --git a/public/docs.html b/public/docs.html index 7d4ba24..7ac71ea 100644 --- a/public/docs.html +++ b/public/docs.html @@ -17,6 +17,12 @@ - - diff --git a/public/examples.html b/public/examples.html index 92c562a..8e945b5 100644 --- a/public/examples.html +++ b/public/examples.html @@ -13,8 +13,13 @@ - - - - @@ -595,9 +598,9 @@ html, body { -