qstudio icon indicating copy to clipboard operation
qstudio copied to clipboard

Visual cursor position misalignment? font size?

Open ryanhamilton opened this issue 1 year ago • 7 comments

I would like to report an issue I’ve encountered with QStudio version 3.06 on Windows 11.

Bug Description:

After changing the font or font size in the editor, I’ve noticed a misalignment between the visual cursor position and its actual position. This makes text editing quite difficult. Restarting QStudio sometimes resolves the issue, but it reoccurs frequently.

The issue seems related to the font in use. However, in my environment, it occurs with nearly all fonts, including MS Gothic, Consolas, and BIZ UD Gothic.

Additionally, certain characters, such as underscores, do not appear in the editor when using specific fonts like BIZ UD Gothic.

I do not recall experiencing these problems in versions prior to 3.0.

user-Yamada

ryanhamilton avatar Sep 27 '24 09:09 ryanhamilton

I have had this issue reported once before but was never able to track it down. If possible could you attach a screenshot to the github issue? May I also ask which version of java you are running? Try running "java -version" at the command line. Or did you use the bundled windows-setup.exe?

ryanhamilton avatar Sep 27 '24 09:09 ryanhamilton

The issue can be consistently reproduced by launching QStudio and changing the font and size settings. In the attached image, the cursor is positioned on the second instance of “Vietnum,” but it appears over the "V" in "Vietnam." Additionally, the highlighting also shows a discrepancy between the first and second "Vietnam" entries, demonstrating a misalignment.

image

java version "1.8.0_391" Java(TM) SE Runtime Environment (build 1.8.0_391-b13) Java HotSpot(TM) Client VM (build 25.391-b13, mixed mode, sharing)

myamada0303 avatar Sep 27 '24 17:09 myamada0303

Thanks @myamada0303 I tried this and I couldn't get it to happen (GIF below) I tried java 8 and 11. On windows 10. What OS are you on?

qstudio-large-font-ezgif com-video-to-gif-converter

ryanhamilton avatar Oct 01 '24 19:10 ryanhamilton

Thank you for your response. To clarify, I am using both Windows 10 and Windows 11, and the issue occurs on both operating systems. Additionally, the language settings on my system are set to Japanese.

As shown in the newly attached image, the cursor (and highlighting) misalignment becomes particularly noticeable towards the end of a line. It seems that small discrepancies accumulate as the line progresses, resulting in larger misalignments by the end. image

myamada0303 avatar Oct 04 '24 06:10 myamada0303

  • user-kent had this happen on his machine when first ran. Restart and changing to consolas, seemed to stop it happening.

ryanhamilton avatar Nov 08 '24 15:11 ryanhamilton

I noticed that the display scaling settings on Windows is causing this problem. Setting the scaling to 100% mostly solves the problem.

myamada0303 avatar Nov 25 '24 07:11 myamada0303

bump - having the same issue - might be scaling but not sure

zaxiom13 avatar Jul 05 '25 17:07 zaxiom13