mirror of
https://github.com/t8y2/dbx.git
synced 2026-10-23 11:36:21 +00:00
fix: use tabular variant first to prevent canvas edit jitter
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user