Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Visual cursor position misalignment? font size? #95

Open
ryanhamilton opened this issue Sep 27, 2024 · 6 comments
Open

Visual cursor position misalignment? font size? #95

ryanhamilton opened this issue Sep 27, 2024 · 6 comments

Comments

@ryanhamilton
Copy link
Collaborator

ryanhamilton commented Sep 27, 2024

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
Copy link
Collaborator Author

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
Copy link

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
Copy link
Collaborator Author

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
Copy link

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
Copy link
Collaborator Author

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

@myamada0303
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants