MiniRepl: consume font settings

This commit is contained in:
Felix Roos 2023-05-28 12:42:15 +02:00
parent 9971867e2f
commit d2dffe3186
3 changed files with 8 additions and 0 deletions

View File

@ -24,6 +24,7 @@ export function MiniRepl({
onPaint,
canvasHeight = 200,
fontSize = 18,
fontFamily,
hideHeader = false,
theme,
keybindings,
@ -156,6 +157,7 @@ export function MiniRepl({
onChange={setCode}
onViewChanged={setView}
theme={theme}
fontFamily={fontFamily}
fontSize={fontSize}
keybindings={keybindings}
/>

View File

@ -7,3 +7,7 @@
border: 1px solid var(--lineHighlight);
padding: 2px;
}
.cm-scroller {
font-family: inherit !important;
}

View File

@ -60,6 +60,8 @@ export function MiniRepl({
theme={themes[theme]}
hideHeader={hideHeader}
keybindings={keybindings}
fontFamily={fontFamily}
fontSize={fontSize}
onPaint={
claviature
? (ctx, time, haps, drawTime) => {