fix: use tabular variant first to prevent canvas edit jitter
This commit is contained in:
parent
05a98f6f4f
commit
48d2e41cb0
|
|
@ -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({
|
||||
|
|
|
|||
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Reference in New Issue