From fd22a01a3c9e39293f47caaed0c0e13d2dc8170c Mon Sep 17 00:00:00 2001 From: Daniel Santos Date: Tue, 23 Nov 2021 06:32:41 -0300 Subject: [PATCH] fix: "offsets" text when font is big --- src/render/font-metrics.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/src/render/font-metrics.ts b/src/render/font-metrics.ts index 3355ed1..f40555c 100644 --- a/src/render/font-metrics.ts +++ b/src/render/font-metrics.ts @@ -27,6 +27,7 @@ export class FontMetrics { container.style.fontSize = fontSize; container.style.margin = '0'; container.style.padding = '0'; + container.style.whiteSpace = 'nowrap'; body.appendChild(container);