I am trying to make the RTE as close to the front end as possible to give the user the best experience. To achieve this, I am wanting to somehow use the fonts we use on the front end, which belong in a wwwroot/assets/fonts folder.
In the RTE settings, I include a CSS file (wwwroot/css/rte.css), and this allows me to apply some styles to things in the RTE such as blockquotes, headings, etc..
However, the one bit I am struggling with is how to use my fonts.
In my rte.css file I am using @font-faceto declare my font:
Then in my rte.css file (wwwroot/css/rte.css) I can reference the “Gilroy” font to the editor which makes the experience for the user (in my opinion) a lot more accurate to what they’ll see on the front end.