0

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...

Mike Lischke
  • 48,925
  • 16
  • 119
  • 181
Woundrite
  • 1
  • 3
  • It's like with any web page. You can only reference a font which is installed on the system or provide a font import somewhere. Search for how to use fonts on a web page. – Mike Lischke Apr 25 '21 at 10:40
  • i have already tried that using a websafe font, and importing a font the intended way and then using it but it still dosent work – Woundrite Apr 26 '21 at 09:03

0 Answers0