Open acsses opened 4 months ago
@acsses like this?
.cm-editor {
font-family: 'Your Desired Font', sans-serif !important;
}
I tried it, But it didn't work.
and I forget to write my env. my env is blow
@acsses You can give it a try:
const FontFamilyTheme = EditorView.theme({
$: {
fontFamily: "'Your Desired Font', sans-serif !important"
}
});
<CodeMirror extensions={[FontFamilyTheme]} />;
const Theme = EditorView.theme({
".cm-content": {
fontFamily: "Menlo, Monaco, Lucida Console, monospace"
},
});
the later methods work! thank you!
How to change font to one included in google fonts?