KevinBatdorf / code-block-pro

A Gutenberg code block with syntax highlighting powered by VS Code
https://code-block-pro.com
132 stars 10 forks source link

Custom fonts #275

Closed bugnumber9 closed 10 months ago

bugnumber9 commented 10 months ago

I'm sure many will appreciate an option to add custom fonts. While I like JetBrains Mono or Fira Code, sometimes it makes sense to inherit theme fonts or even plug a custom one in.

KevinBatdorf commented 10 months ago

Do you have one in mind? I could add it if it's programming related and uses an open license.

Otherwise I could give you some css to apply it globally in your theme.

bugnumber9 commented 10 months ago

Check https://www.sitepoint.com/top-10-programming-fonts/ Roboto Mono, Hack and Meslo are good candidates.

KevinBatdorf commented 10 months ago

I'll take a look. If they have an open source license and look good when I add them then it shouldn't be an issue including them.

KevinBatdorf commented 10 months ago

Added Roboto and Mono to the release just now. Meslo looked nice but I coulnd't compress it properly and it was I think 400kb or something too big unfortunately.