-
Notifications
You must be signed in to change notification settings - Fork 260
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Cannot enable ligatures (JetBrains Mono font) #503
Comments
pinging @DevCharly in case they have experienced this elsewhere |
I'm actually surprised that ligatures work in Swing 😮 So I tried to enable ligatures in FlatLaf Theme Editor, which uses RSyntaxTextArea, and it works 😮 I think the reason is that FlatLaf Theme Editor uses a subclass of There are several places in RSyntaxTextArea/RSyntaxTextArea/src/main/java/org/fife/ui/rsyntaxtextarea/SyntaxScheme.java Lines 445 to 449 in 9097e51
or RSyntaxTextArea/RSyntaxTextArea/src/main/java/org/fife/ui/rsyntaxtextarea/SyntaxScheme.java Lines 109 to 110 in 9097e51
To fix this, and keep the usage of |
Thanks a lot for this. I'm closing it, as this is a reasonable workaround. |
I'll reopen this to make the necessary changes in |
JetBrains mono is a much-improved font for coding, featuring many readability features such as coding-specific ligatures. I am not able to use this font properly in RSyntaxTextArea.
Take this snippet that requires FlatLaf and the FlatLaf JetBrains Mono distribution (direct downloadable jars for both dependencies: flatlaf, flatlaf-fonts-jetbrains-mono):
The ligatures do render in JTextArea:
..but not in a RSyntaxTextArea:
Why is that? I could not find any obvious signs that TextAttributes are being overridden in the code base.
The text was updated successfully, but these errors were encountered: