From 714500edfdaf354d3c7fd71d2facfc2b5cd5d10d Mon Sep 17 00:00:00 2001 From: qazal <77887910+Qazalin@users.noreply.github.com> Date: Wed, 1 Oct 2025 08:08:47 +0300 Subject: [PATCH] viz: add font-weight to OffscreenCanvas config (#12390) --- tinygrad/viz/js/worker.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tinygrad/viz/js/worker.js b/tinygrad/viz/js/worker.js index 9fbcaa06e6..8c3703908b 100644 --- a/tinygrad/viz/js/worker.js +++ b/tinygrad/viz/js/worker.js @@ -2,7 +2,7 @@ const NODE_PADDING = 10; const LINE_HEIGHT = 14; const canvas = new OffscreenCanvas(0, 0); const ctx = canvas.getContext("2d"); -ctx.font = `${LINE_HEIGHT}px sans-serif`; +ctx.font = `350 ${LINE_HEIGHT}px sans-serif`; onmessage = (e) => { const { graph, additions } = e.data;