I took a look at this, and it turns out that while it sounds simple, it's harder to implement than I thought.
One temporary (but nasty) work-around is to set one one of your token styles that isn't used in the languages you edit to something larger than the rest. Since RSTA makes all lines the same height (the height of the largest font in all token types), you could probably set some unused Token type to use a Font of just the right point size. For example,
- Code: Select all
SyntaxScheme scheme = textArea.getSyntaxScheme();
Style unusedStyle = new Style(Color.black, null, new Font("Monospaced", Font.PLAIN, 32));
Assuming the language being edited doesn't highlight backtick literals (e.g. `foobar`), this will have the nice side effect of making all lines taller than the fonts being used for all other tokens. Naturally, if your language has backtick literals, you'd have to pick some other token type to modify in this way. For non-markup programming languages, Token.MARKUP_TAG_NAME might be another good choice.
Again, this is such a bad workaround that I almost am ashamed to suggest it. But, maybe it's good enough for you, at least until official support gets added!