From e25573cc267e4665e7060c902919c5315ba1e89e Mon Sep 17 00:00:00 2001 From: ed Date: Fri, 22 May 2026 21:51:17 +0000 Subject: [PATCH] use custom orbitron --- copyparty/__init__.py | 1 + copyparty/web/browser.css | 6 +++--- copyparty/web/browser.html | 3 --- copyparty/web/ui.css | 5 +++++ scripts/sfx.ls | 1 + 5 files changed, 10 insertions(+), 6 deletions(-) diff --git a/copyparty/__init__.py b/copyparty/__init__.py index 8bffed86..f4e8f877 100644 --- a/copyparty/__init__.py +++ b/copyparty/__init__.py @@ -80,6 +80,7 @@ web/deps/marked.js web/deps/fuse.py web/deps/mini-fa.css web/deps/mini-fa.woff +web/deps/orbitron.woff2 web/deps/prism.css web/deps/prism.js web/deps/prismd.css diff --git a/copyparty/web/browser.css b/copyparty/web/browser.css index 65af7c92..5d0d3d56 100644 --- a/copyparty/web/browser.css +++ b/copyparty/web/browser.css @@ -5224,9 +5224,9 @@ html.f { --g-sel-bg: color-mix(in xyz, var(--g-sel-b1) 70%, var(--bg-u2)); --bg-u1: color-mix(in srgb, var(--fg) 10%, transparent); - --font-main: "Orbitron", sans-serif; - --font-mono: "Orbitron", monospace; - font-family: "Orbitron", sans-serif; + --font-main: 'orbitron', sans-serif; + --font-mono: 'orbitron', monospace; + font-family: 'orbitron', sans-serif; font-optical-sizing: auto; letter-spacing: .05em; diff --git a/copyparty/web/browser.html b/copyparty/web/browser.html index 6984c9cf..be337070 100644 --- a/copyparty/web/browser.html +++ b/copyparty/web/browser.html @@ -7,9 +7,6 @@ - - - {{ html_head }} diff --git a/copyparty/web/ui.css b/copyparty/web/ui.css index 7e92f01c..685e1bb6 100644 --- a/copyparty/web/ui.css +++ b/copyparty/web/ui.css @@ -114,6 +114,11 @@ html.y { font-display: swap; src: local('Source Code Pro Regular'), local('SourceCodePro-Regular'), url(deps/scp.woff2) format('woff2'); } +@font-face { + font-family: 'orbitron'; + font-display: swap; + src: url(deps/orbitron.woff2) format('woff2'); +} html { text-size-adjust: 100%; -webkit-text-size-adjust: 100%; diff --git a/scripts/sfx.ls b/scripts/sfx.ls index 66ad6133..c16f588b 100644 --- a/scripts/sfx.ls +++ b/scripts/sfx.ls @@ -84,6 +84,7 @@ copyparty/web/deps/fuse.py, copyparty/web/deps/marked.js, copyparty/web/deps/mini-fa.css, copyparty/web/deps/mini-fa.woff, +copyparty/web/deps/orbitron.woff2, copyparty/web/deps/prism.css, copyparty/web/deps/prism.js, copyparty/web/deps/prismd.css,