Skip to content
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

Code blocks do not have monospace fonts #1391

Closed
SMUsamaShah opened this issue Jan 12, 2018 · 6 comments
Closed

Code blocks do not have monospace fonts #1391

SMUsamaShah opened this issue Jan 12, 2018 · 6 comments

Comments

@SMUsamaShah
Copy link

image

Also I want to change font of code only to "Fira Code", how do I do that?

Also there is a weird gray box in upper left corner of text editor area. Its there in snippets also.

@SMUsamaShah SMUsamaShah changed the title Code blocks are not monospace fonts Code blocks do not have monospace fonts Jan 12, 2018
@kazup01
Copy link
Member

kazup01 commented Jan 15, 2018

Hi @SMUsamaShah , you can change the font family from Preferences.

screen shot 0030-01-15 at 7 16 22 am

screen shot 0030-01-15 at 7 16 32 am

The wired grey box is not reproduced for my environment(macOS / Boostnote v0.8.20). Could you tell me your one?

@SMUsamaShah
Copy link
Author

@kazup01 If I change Preview Font Family to let say 'Fira Code' (a monospace font), it changes the whole preview to 'Fira Code' instead of only the code fences.

I am on Windows 10 / Boostnote v0.8.20.

I ended up modifying the theme css file like .cm-s-dracula {font-family: 'Fira Code'; } but this doesn't feel right.

@SMUsamaShah
Copy link
Author

There should be an option to set the font of only code fences.

@pwsandoval
Copy link

I support this idea.

@ZeroX-DG
Copy link
Member

You can change the style of the preview in the setting now. Goto setting -> interface -> scroll down at the bottom -> check Allow custom css for preview and enter your css like that bellow:

image

Result:
image

@fareedfauzi
Copy link

For those who use new version of Boosts Note (0.1.4).

Change to Fira Code !important at line 212

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants