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.

2 comments
Comment actions Permalink

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

1
Comment actions Permalink

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

0

Please sign in to leave a comment.