-
-
Notifications
You must be signed in to change notification settings - Fork 20.8k
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
Code Editor line spacing too large even at zero #76385
Comments
It may be depended on fonts used by the editor. In 3.x default font was |
It may also be due to #74528 that the value change did not take effect. |
@amonroejj is using a custom font in the screenshots, although they didn't specify which font it is (nor the font size used). |
Font is ProFontWindows.ttf from https://tobiasjung.name/profont/ . Code font size is 12. Screenshots were taken on the same machine at the same time. |
@amonroejj Did you try restarting the editor after changing the setting? I guess the way line spacing is calculated has changed in 4.0 due to the TextServer refactoring. We could allow setting the line spacing editor setting as low as cc @bruvzg |
@Calinou Yes, the increased line spacing persists over relaunch & reboot. |
One offshoot of this is that the hotspot of the I-beam mouse cursor seems not to be centered vertically, so mouse click doesn't put the cursor where expected. With the mouse pointer in this position, the expectation would be to put the cursor in the fourth line of visible text, but as seen in the screenshot, the actual result is that the cursor goes to the third line of visible text. |
Seems to be a bug in |
Something I just noticed regarding line spacing is that that the Output pane (green highlight) perfectly copes with tight line spacing while the code editor (yellow highlight) does not: I'm not familiar enough with the internals of the editor to know whether different classes are used between these two controls in the GUI. |
Godot version
4.0.2.stable
System information
Windows 10, NVIDIA GeForce GTX 1060 516.94
Issue description
Godot 3.x: line spacing 2 (can get even tighter at 1 or 0!)
Godot 4.x: line spacing 0 (not dense enough, and cannot get any tighter!)
Steps to reproduce
Minimal reproduction project
N/A
The text was updated successfully, but these errors were encountered: