You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If font hinting is "normal" then the artificially indented wrapped text of a wrapping, wrap-indenting CodeEdit is misaligned with its parent line's indentation level.
The issue goes away if subpixel positioning and rounding-remainders are both disabled.
Something similar happens regardless of hinting level if Subpixel Positioning is disabled but rounding-remainders is left enabled, but the version with rounding-remainders applies to unindented/unwrapped text too, but is probably not noticeable with non-monospace fonts.
Steps to reproduce
Set up a CodeEdit with some long indented text, turn on wrapping and wrap indentation, make it wrap, set the font to something where you can configure the hinting, switch between Normal and the other settings. The indentation level of the wrapped text will likely be wrong with Normal mode (might be font-sensitive).
Tested versions
4.4dev7
System information
Godot v4.4.dev7 - Windows 10 (build 19045) - Multi-window, 2 monitors - OpenGL 3 (Compatibility) - AMD Radeon RX 6800 (Advanced Micro Devices, Inc.; 32.0.12033.1030) - AMD Ryzen 5 7600X 6-Core Processor (12 threads)
Issue description
If font hinting is "normal" then the artificially indented wrapped text of a wrapping, wrap-indenting CodeEdit is misaligned with its parent line's indentation level.
The issue goes away if subpixel positioning and rounding-remainders are both disabled.
Something similar happens regardless of hinting level if Subpixel Positioning is disabled but rounding-remainders is left enabled, but the version with rounding-remainders applies to unindented/unwrapped text too, but is probably not noticeable with non-monospace fonts.
Steps to reproduce
Set up a CodeEdit with some long indented text, turn on wrapping and wrap indentation, make it wrap, set the font to something where you can configure the hinting, switch between Normal and the other settings. The indentation level of the wrapped text will likely be wrong with Normal mode (might be font-sensitive).
Minimal reproduction project (MRP)
wrapbugrepro.zip
The text was updated successfully, but these errors were encountered: