Skip to content

RSyntaxTextArea Display and Cursor Behavior During Cross-Monitor Usage #626

@outlier922

Description

@outlier922

Description
When using an RSyntaxTextArea-based editor on a multi-monitor setup with different scaling factors, we observe significant rendering anomalies and cursor behavior issues:

Text Rendering Artifacts:
When moving the editor window from a laptop display (125% scaling) to a secondary desktop monitor (100% scaling), SQL keywords scale appropriately but punctuation marks fail to reposition correctly. This causes overlapping where punctuation collides with adjacent words in the same line.

Selection Rendering Failure:
Partial text selection becomes visually corrupted during cross-monitor transitions. Selected character ranges display erratically with improper highlighting boundaries.

Cursor Positioning Errors:
The text cursor frequently renders directly over characters instead of maintaining its position between them. This ambiguous placement makes it impossible to determine whether:

The cursor is positioned before a character

The character itself is selected

The cursor is positioned after the character

Cursor Shape Inconsistency:
The cursor intermittently switches to a hollow (unfilled) rectangle shape instead of maintaining the standard solid vertical bar indicator during these display transitions.

Java version
jdk17

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions