Replies: 2 comments 2 replies
-
Probably all it would take to support variable width fonts is to remove the assumptions of fixed width in:
These assumptions are there to speed up these routines for the common cases (spaces + letters). |
Beta Was this translation helpful? Give feedback.
-
Thank you! Making those changes seems to work and performance changes aren't obvious (though I've only done limited testing.) I'll do more testing, but I wonder if this would be a useful option to add. There would just need to be a way to not restrict the font selection to fixed width (maybe a hard option or a define.) Obviously, we wouldn't want to hurt performance for the people using fixed width fonts (which, after all, is the main focus of SynEdit.) |
Beta Was this translation helpful? Give feedback.
-
Recently I noticed that SynEdit correctly handles mixing English characters and Korean characters on a line. Korean characters are wider than English characters and SynEdit handles it perfectly as far as my testing goes. It got me thinking about variable width character fonts (say Arial.) Of course, testing (by disabling the fixed width font check) shows that it definitely doesn't work as the cursor position isn't correctly handled. Any thoughts on if it's feasible or even makes sense to handle non-fixed width fonts? I'm making this just a discussion as it's not really even a feature request... just something I'd been thinking about.
Beta Was this translation helpful? Give feedback.
All reactions