Text selection issues in the output window with certain fonts
- 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:

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
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