Skip to content

Commit fd22a01

Browse files
authored
fix: "offsets" text when font is big
1 parent ed57781 commit fd22a01

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/render/font-metrics.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ export class FontMetrics {
2727
container.style.fontSize = fontSize;
2828
container.style.margin = '0';
2929
container.style.padding = '0';
30+
container.style.whiteSpace = 'nowrap';
3031

3132
body.appendChild(container);
3233

0 commit comments

Comments
 (0)