How to add a custom font file in monaco editor

1.2k views Asked by At

the question is simple... Can I Use a custom font from a .ttf file in monaco-editor. If so... How do i do it, because I have tried to send in fontFamily: "monospace" I have also tried to send in a custom font file like fontFamily: "Fonts/SourceCodePro.ttf" but it doesn't work...

An Image Font not coming

and here is the editor initialization

here

can someone help me...

0

There are 0 answers