timestored / qstudio

qStudio - Free SQL Analysis Tool
https://www.timestored.com/qstudio/
Apache License 2.0
575 stars 26 forks source link

Visual cursor position misalignment? font size? #95

Open ryanhamilton opened 1 month ago

ryanhamilton commented 1 month ago

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 commented 1 month ago

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?

myamada0303 commented 1 month ago

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)

ryanhamilton commented 1 month ago

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

myamada0303 commented 1 month ago

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

ryanhamilton commented 1 week ago