Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Using "Operator Mono" with "Firacode"

I'm currently using operator mono font as my default font in vs code, now I want to add fira code font to it, but I don't know how to add it in order to make both of them work. I try to add the second font in font family settings but the second font seems to replace the current font. How should I do that?

My current sitting :

"editor.fontFamily": "'Operator Mono' ", "editor.fontLigatures" : true

like image 375
Sina Mirzahosseinian Avatar asked Jan 28 '18 12:01

Sina Mirzahosseinian


2 Answers

You can also update your Operator Mono font to include ligatures. I wrote a project that merges custom ligatures into your existing font.

Check it out at https://github.com/kiliman/operator-mono-lig

enter image description here

like image 78
Kiliman Avatar answered Sep 23 '22 00:09

Kiliman


The first font in the list of the editor.fontFamily setting will be the used font for all code. Only if this font does not exist on your computer it will fall back to the second font in that list and so forth. The editor.fontLigatures: true setting will only work if your chosen font supports font ligatures which I think 'Operator Mono' does not.

However there is a way to combine two different fonts in VSCode: https://medium.com/@zamamohammed/multiple-fonts-alternative-to-operator-mono-in-vscode-7745b52120a0

like image 43
Max S. Avatar answered Sep 21 '22 00:09

Max S.