Skip to content

Commit 00631a4

Browse files
authored
fix: correct display selected text in editor (sveltejs#211)
1 parent bfb7b90 commit 00631a4

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/routes/tutorial/[slug]/Editor.svelte

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,10 @@
4848
import('$lib/client/monaco/monaco.js').then(({ monaco }) => {
4949
if (destroyed) return;
5050
instance = init(monaco, dark_mode);
51+
52+
document.fonts.ready.then(() => {
53+
monaco.editor.remeasureFonts();
54+
});
5155
});
5256
5357
/** @param {MediaQueryListEvent} event */

0 commit comments

Comments
 (0)