rust-monaco icon indicating copy to clipboard operation
rust-monaco copied to clipboard

Fonts aren't included in the generated build files

Open ranile opened this issue 3 years ago • 2 comments

Monaco includes fonts with it but those are not included by this crate. This results in the following error when trying to load the editor, as index.html is returned instead of the font: image

The generated files should also include the ttf font files

ranile avatar Jun 19 '22 13:06 ranile

Not a huge fan of bundling fonts as code but I can't think of a better way for now. Do you already have a patch lined up?

siku2 avatar Jun 20 '22 00:06 siku2

Do you already have a patch lined up?

I don't, mostly because I don't know how to do this. I brought this up because Yew Playground can't load the editor font

ranile avatar Jun 20 '22 19:06 ranile