Skip to content

Instantly share code, notes, and snippets.

@izzqz
Last active May 21, 2025 18:01
Show Gist options
  • Save izzqz/af36c5bbde67ffff0f7614cf738d75a5 to your computer and use it in GitHub Desktop.
Save izzqz/af36c5bbde67ffff0f7614cf738d75a5 to your computer and use it in GitHub Desktop.
How to setup JetBrains Mono Nerd Font with ligatures to use is inside crostini terminal

Setup Nerd Fonts in Chrome OS terminal

Press Ctr + Shift + j to open devtools console in crostini terminal.

Paste this to use Jetbrais Mono with ligatures:

term_.prefs_.set('font-family', 'JetBrains Mono Nerd Font, monospace');
term_.prefs_.set('user-css-text', '@font-face {font-family: "JetBrains Mono Nerd Font"; src: url("https://raw.githubusercontent.com/ryanoasis/nerd-fonts/master/patched-fonts/JetBrainsMono/Ligatures/Regular/JetBrainsMonoNerdFont-Regular.ttf"); font-weight: normal; font-style: normal;} x-row {text-rendering: optimizeLegibility;font-variant-ligatures: normal;}')
  1. To change font, replace url path to raw .ttf file with your font in Nerd Fonts repository
  2. To disable ligatures, delete x-row class in user-css-text parameter
@vdegenne
Copy link

Please update your original comment, you left a ")" at the end of .ttf in your url... That's why It doesn't work.

@izzqz
Copy link
Author

izzqz commented Apr 10, 2025

@vdegenne Update it... Thanks 👍

@vdegenne
Copy link

vdegenne commented Apr 23, 2025

But just for information, I think this method is cleaner and will persist across the same account.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment