Error rendering unicode slashthrough characters
Alexandre Hagihara last edited by
I was trying to write some slashthrough characters, but they are rendered as the image below
Strangely, when I enable dark mode, they render as this (with a kind of offset on the slash):
To replicate this, just copy and paste this line on a new file:
Opening the file with a hex editor, we have this:
But if I invert the bytes sequence:
I have these results:
Before someone asks me, I’m up-to-date:
PeterJones last edited by
The slashthrough U+0337 character you showed is a pretty fancy Unicode character, because it is a “combining”/“overlay” glyph, and some fonts have trouble with them. Your selected font may be different for normal mode vs Dark Mode, so maybe the font you have selected in Dark Mode has different Unicode coverage.
But also there is some other behind-the-scenes font-related magic that affects how Unicode is rendered, so even if your font is okay, there might be oddities. Try toggling Settings > Preferences > MISC > Use DirectWrite to see if it draws those characters better (more in the usermanual).