apache / apache/netbeans

Text selection issues in the output window with certain fonts

Open
#6,300 3 comments 0 reactions 0 assignees View on GitHub
kind:bug UI
Dominant language
Java
Stars
3.1k
Forks
935
Avg merge
2d 3h
Merged PRs (30d)
17

Description

### Apache NetBeans version

Apache NetBeans 18

### What happened

using the the default `monospace` font on fedora (virtualbox/1080p/no scaling)

While testing https://github.com/apache/netbeans/pull/6163#issuecomment-1625313727, I noticed an issue which seems to appear in the **output** window when you select something from right to left:
![image](https://github.com/apache/netbeans/assets/114367/543723db-ee84-4b1f-b084-bdd0dbf2aa7a)

Something is wrong with the selection. This is not reproducible on my workstation on manjaro linux since it uses different fonts, only on fedora so far.

Terminal works fine.

### Did this work correctly in an earlier version?

No / Don't know

### Operating System

Fedora

### JDK

17, 20

### Apache NetBeans packaging

Apache NetBeans binary zip

### Anything else

_No response_

### Are you willing to submit a pull request?

Maybe

Contributor guide

Open the contributing guide

Research direction

Reproduce the issue in the NetBeans output window on Fedora with the default monospace font, selecting text from right to left, and compare it with terminal behavior. Trace the output window's text-selection implementation; done when selection renders correctly for the reported font and direction.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
desktop-dev
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.