fix: use tabular variant first to prevent canvas edit jitter

This commit is contained in:
t8y2 2026-06-16 11:12:01 +08:00
parent 05a98f6f4f
commit 48d2e41cb0
2 changed files with 2 additions and 2 deletions

View File

@ -162,7 +162,7 @@ function resolveCanvasRenderState(canvas: HTMLCanvasElement, isDark: boolean, st
const cached = canvasRenderStateCache.get(canvas);
if (cached?.cacheKey === cacheKey) return cached;
const fontFamily = canvasStyle.fontFamily || `"Geist Variable", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif`;
const fontFamily = canvasStyle.fontFamily || `"Geist Variable Tabular", "Geist Variable", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif`;
const fontSize = Number.parseFloat(canvasStyle.fontSize) || 12;
const lineHeight = canvasStyle.lineHeight;
const normalFont = canvasFont({

View File

@ -276,7 +276,7 @@ body.dbx-table-reference-dragging * {
}
:root {
--dbx-data-grid-font-family: "Geist Variable", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
--dbx-data-grid-font-family: "Geist Variable Tabular", "Geist Variable", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
}
.dbx-data-grid-font-family {