Page 1 of 1

Asterisk String Misbehaves at 3 Count Without a Lexer

Posted: 13.09.2025 02:46
by Random Void User
Attached image shows the problem. Why is the middle asterisk on the relevant line elevated? Font is JetBrainsMono Nerd Font Mono, size 22pt, if it matters. CudaText 1.227.0.0, linux-x86_64-gtk2, fpc 3.2.3. This happens with new files or saved .txt files, in either case no lexer involved.

Re: Asterisk String Misbehaves at 3 Count Without a Lexer

Posted: 13.09.2025 05:16
by main Alexey
because font supports ligature for '***'. you can turn off ligatures in user.json.

PS.
if will be good if you repeat old crash with my new beta with crash-log (and show me the crash-log):
https://synwrite.sourceforge.net/forums ... 596#p20596

Re: Asterisk String Misbehaves at 3 Count Without a Lexer

Posted: 13.09.2025 18:51
by Random Void User
Ah yes, ligatures. This one is so odd though; I don't know why it exists. The readme says it tweaks whitespace, which seems weird for three asterisks.
https://github.com/JetBrains/JetBrainsMono

Turning off ligatures everywhere is too draconian. An easy font config can disable them in one font. However JetBrains has no-ligature (NL) variants. So I can set CudaText to a NL variant for text, and back for programming.

Thanks!

Re: Asterisk String Misbehaves at 3 Count Without a Lexer

Posted: 13.09.2025 20:38
by main Alexey
good to know about existince of NL variant of fonts.

Re: Asterisk String Misbehaves at 3 Count Without a Lexer

Posted: 13.09.2025 20:42
by main Alexey
BTW pls try this method, does it work?

- create lexer-override config for none-lexer, it is 'lexer -.json'
- write there

Code: Select all

{
  "font_ligatures": false
}
- restart app


EDITED
yes, this method works.