Editor font: How to get it programmically?

1. Can you get the font MPS is using for the editor cells (for example what it uses for constant cells) programmatically?

2. How is the default font determined?  Is there a setting under File>Settings that set the default font for editor cells?

The reason I'm asking is I have a swing component (button) and I want to set the text inside the button to the same font as the rest of the editor.


Is `jetbrains.mps.nodeEditor.EditorSettings#getDefaultEditorFont()` what you're looking for? Yes, it's defined in settings.


Yes, thanks. I was using that but though the font didn't appear the same.  I see it the same now.


Please sign in to leave a comment.