Skip to content

Make videos on the computer you already own. FreeVideo runs MiniMax H3 in as little as 8 GB of VRAM and 16 GB of RAM, and adapts its acceleration path to your hardware.

Interface: keep curly single quotes at their Latin width

Bowen Xuece8de6fecae0
diff --git a/web/health.js b/web/health.js
index 6a1687e..314cd1d 100644
--- a/web/health.js
+++ b/web/health.js
@@ -527,8 +527,22 @@ async function reloadOnce(problems) {
return true;
}
+// Curly single quotes from a Latin face where Segoe UI is missing, as theme.css does: the CJK faces after it draw
+// them full width. Added from here because theme.css may be one of the files that failed.
+let quoteFaces = false;
+function addQuoteFaces() {
+ if (quoteFaces || !globalThis.FontFace || !document.fonts) return;
+ quoteFaces = true;
+ for (const [weight, names] of [['100 500', ['Noto Sans Regular', 'NotoSans-Regular', 'DejaVu Sans', 'Liberation Sans']],
+ ['600 900', ['Noto Sans Bold', 'NotoSans-Bold', 'DejaVu Sans Bold', 'Liberation Sans Bold']]]) {
+ try { document.fonts.add(new FontFace('FreeVideo Quotes', names.map(name => `local("${name}")`).join(), {weight, unicodeRange: 'U+2018-2019'})); }
+ catch { /* The card still shows in the fonts the browser has. */ }
+ }
+}
+
function show(problems) {
lastProblems = problems;
+ addQuoteFaces();
card?.remove();
card = document.createElement('section');
card.setAttribute('role', 'alert'); card.className = 'fv-health';
@@ -536,7 +550,7 @@ function show(problems) {
width: 'min(600px, calc(100vw - 32px))', maxHeight: 'calc(100vh - 32px)', overflow: 'auto', boxSizing: 'border-box',
padding: '18px 20px 16px', borderRadius: '12px', background: '#1a222e', color: '#e7edf7',
border: '1px solid #5a3440', boxShadow: '0 18px 48px rgba(0,0,0,.45)',
- font: '13px/1.55 "Segoe UI","Microsoft YaHei UI","Noto Sans CJK SC","Noto Sans SC",system-ui,sans-serif'});
+ font: '13px/1.55 "Segoe UI","FreeVideo Quotes","Microsoft YaHei UI","Noto Sans CJK SC","Noto Sans SC",system-ui,sans-serif'});
const title = document.createElement('div');
const extension = problems.map(extensionProblem).find(Boolean);
const extensionAdvice = extension && extensionUI.browserExtensionAdvice(extension, t,
diff --git a/web/theme.css b/web/theme.css
index 2eb43a3..d8c2779 100644
--- a/web/theme.css
+++ b/web/theme.css
@@ -1,6 +1,10 @@
/* One token table for the web views, mirroring freevideo_engine/branding.py so
a control looks the same in the launcher and in ComfyUI. Scope the tokens to
our own views; never change ComfyUI's theme. */
+/* Curly single quotes from a Latin face where Segoe UI is missing: the CJK faces after it draw them full width.
+ Only Linux faces are named, so other systems keep their own quotes. */
+@font-face{font-family:"FreeVideo Quotes";font-weight:100 500;unicode-range:U+2018-2019;src:local("Noto Sans Regular"),local("NotoSans-Regular"),local("DejaVu Sans"),local("Liberation Sans")}
+@font-face{font-family:"FreeVideo Quotes";font-weight:600 900;unicode-range:U+2018-2019;src:local("Noto Sans Bold"),local("NotoSans-Bold"),local("DejaVu Sans Bold"),local("Liberation Sans Bold")}
:where(.fv-phone,.fv-lan,.fv-studio,.fv-setup,.fv-panel,.fv-generation-progress,.fv-view-navigation,.fv-prompt-guide,.fv-failure-dialog,.fv-reference-picker,.fv-release-notes,.fv-image-editor,.fv-cast-dialog,.fv-tutorial-book,.fv-feature-tour){
/* Surfaces, from the backdrop up to a hovered control; mirrors branding.py. */
--fv-bg:#111720;--fv-canvas:#161e29;--fv-card:#1a222e;--fv-raised:#212a37;--fv-hover:#2a3341;
@@ -24,7 +28,7 @@
--fv-ease-out:cubic-bezier(.22,1,.36,1);--fv-ease:cubic-bezier(.4,0,.2,1);
--fv-quick:.14s;--fv-base:.24s;--fv-slow:.42s;
--fv-step:4px;
- --fv-font:"Segoe UI","Microsoft YaHei UI","Noto Sans CJK SC","Noto Sans SC",system-ui,sans-serif;
+ --fv-font:"Segoe UI","FreeVideo Quotes","Microsoft YaHei UI","Noto Sans CJK SC","Noto Sans SC",system-ui,sans-serif;
font-family:var(--fv-font);
color-scheme:dark;
}