I need to specify a second font for the editor for Sinhala letters. When I set the font (using the options>appearance field) to Noto Sans Sinhala that works, but then the English letters are some backup system font. I normally had the editor font to Fira Sans.
I have tried userstyle.css
body {
font-family: "Fira Sans","Noto Sans Sinhala"!important;
}
and
* {
font-family: "Fira Sans","Noto Sans Sinhala"!important;
}
But neither does anything. I'm afraid I'm doing something stupid.
I have also tried a list of comma separated fonts in the appearance setting but that didn't work either.
This similar question never got an answer. Surely there must be a way to do this that I'm missing.
When I modified that line in the explorer to have font-family: "Fira Sans","Noto Sans Sinhala"!important; it worked. So it seems that is what I need to include. However, putting this in `userchrome.css` did not work:
.CodeMirror5 *, .cm-editor .cm-content {font-family: "Fira Sans","Noto Sans Sinhala"!important;}
I am trying to figure out more of the places this needs to be set and I have come up with this so far:
body .CodeMirror5 *,
body .cm-editor .cm-content,
input.title-input,
div.item-list *,
a.list-item,
div.note-list-item > .content > .title > span,
.note-list .list-item div.title
{
font-family: "Fira Sans","Font Awesome 5 Free","icomoon","Noto Sans Sinhala"!important;
}
I had to include "Font Awesome 5 Free","icomoon" otherwise the folder arrows (open close) and the tags and all post icons in the folder pane got tofued.
It would be awesome if there was a more built-in way for people to set a list of fonts through the interface. Maybe a Google Summer of Code project? I imagine there are other folks who could use this.
Thanks!!!
I’m marking solved but I appreciate any other thoughts on this matter.