Asterisk String Misbehaves at 3 Count Without a Lexer
-
- Posts: 62
- Joined: 13.07.2024 21:19
Asterisk String Misbehaves at 3 Count Without a Lexer
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 (5.75 KiB) Viewed 64 times
-
- Posts: 2644
- Joined: 25.08.2021 18:15
Re: Asterisk String Misbehaves at 3 Count Without a Lexer
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
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
-
- Posts: 62
- Joined: 13.07.2024 21:19
Re: Asterisk String Misbehaves at 3 Count Without a Lexer
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!
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!
-
- Posts: 2644
- Joined: 25.08.2021 18:15
Re: Asterisk String Misbehaves at 3 Count Without a Lexer
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.
-
- Posts: 2644
- Joined: 25.08.2021 18:15
Re: Asterisk String Misbehaves at 3 Count Without a Lexer
BTW pls try this method, does it work?
- create lexer-override config for none-lexer, it is 'lexer -.json'
- write there
- restart app
EDITED
yes, this method works.
- create lexer-override config for none-lexer, it is 'lexer -.json'
- write there
Code: Select all
{
"font_ligatures": false
}
EDITED
yes, this method works.