New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How to change the font #636
Comments
@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.
|
@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! |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
How to change font to one included in google fonts?
The text was updated successfully, but these errors were encountered: