Skip to content

LineEdit cursor is sometimes invisible if 2D scaling is below the native resolution #58133

Closed
@brianwinterpixel

Description

Godot version

3.4.2.stable

System information

Windows 10, GLES3

Issue description

All text editing controls use a cursor line width of 1 pixel in exported projects. This causes issues when using controls with different scales. This is a common use case when scaling down UI to fit smaller resolution screens.

Example:

This LineEdit has rect_scale=(0.9, 0.9)

At some cursor positions, it is visible:
image
However, in others, it is always invisible:
image

Steps to reproduce

See above

Minimal reproduction project

lineeditScaleBug.zip

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions