Re: Cursor location offset from true location

Mitchell <[email protected]> Tue, 20 May 2025 17:21:25 -0400
Newsgroups gmane.comp.lib.scintilla.devel
Message-ID <[email protected]>
Hi,

> On May 20, 2025, at 5:06 PM, Jean Lalonde <[email protected]> wrote:
> 
> Hi,
> 
> A user of my app containing th Scintilla editor component (DLL v3.7.6) reports the following error:
> 
> The cursor while in Editor almost always will be offset from its true location. It makes it difficult to edit text since you don't know where you are within the text. The attached image shows the cursor to the left of the period while the true location is at the end of the line. So if I were to press the delete key, it wouldn't delete the period but instead move the next line up to the end of the current line. The cursor can be 1 or 2 positions offset and it might have been to 3 before. This makes it more difficult to edit since it's not consistent and you can't account for it.
> 
> Only one user reported the error. He is using Windows 11. I can't reproduce the issue on my dev and test systems (Win10 and 11) with various resolutions and scalings.
> 
> Have you ever seen this issue with other implementations of Scintilla? What should I investigate to locate the source of this issue?

I have seen this happen with weird fonts. I don’t remember which ones, but changing the font made the problem go away for me. Your suggestion of using a fixed width font was a good one.

Cheers,
Mitchell

> 
> Thanks you for the great help found from this group's users!
> 
> Jean
> 
> 
> 
> -- 
> You received this message because you are subscribed to the Google Groups "scintilla-interest" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to [email protected].
> To view this discussion visit https://groups.google.com/d/msgid/scintilla-interest/b33e304a-68b5-4e7e-86c5-c70e83c3c4b2n%40googlegroups.com.

-- 
You received this message because you are subscribed to the Google Groups "scintilla-interest" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [email protected].
To view this discussion visit https://groups.google.com/d/msgid/scintilla-interest/68B0AD14-A757-4B61-998C-98293B7E3702%40foicica.com.