Asterisk String Misbehaves at 3 Count Without a Lexer

Solved bugs are moved into this topic...
Post Reply
Random Void User
Posts: 62
Joined: 13.07.2024 21:19

Asterisk String Misbehaves at 3 Count Without a Lexer

Post 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.
Attachments
asterisk-glitch.png
asterisk-glitch.png (5.75 KiB) Viewed 64 times
main Alexey
Posts: 2644
Joined: 25.08.2021 18:15

Re: Asterisk String Misbehaves at 3 Count Without a Lexer

Post 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
Random Void User
Posts: 62
Joined: 13.07.2024 21:19

Re: Asterisk String Misbehaves at 3 Count Without a Lexer

Post 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!
main Alexey
Posts: 2644
Joined: 25.08.2021 18:15

Re: Asterisk String Misbehaves at 3 Count Without a Lexer

Post by main Alexey »

good to know about existince of NL variant of fonts.
Last edited by main Alexey on 13.09.2025 20:44, edited 1 time in total.
main Alexey
Posts: 2644
Joined: 25.08.2021 18:15

Re: Asterisk String Misbehaves at 3 Count Without a Lexer

Post 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.
Post Reply