Skip to content

Avoid cut-off symbols in Terminal on monitor zoom != 100%#2483

Draft
HeikoKlare wants to merge 2 commits intoeclipse-platform:masterfrom
vi-eclipse:issue-2191-advanced
Draft

Avoid cut-off symbols in Terminal on monitor zoom != 100%#2483
HeikoKlare wants to merge 2 commits intoeclipse-platform:masterfrom
vi-eclipse:issue-2191-advanced

Conversation

@HeikoKlare
Copy link
Contributor

On monitors with zoom != 100% on Windows, symbols in the Terminal appear cut-off. This can be avoided by enabled advanced mode for the GC used for rendering the text.

This PR includes and should thus be processed after:

This is a replacement for the PR enabling antialiasing which had to be reverted because of performance issues:

The change still has a performance impact, but it's much less severe than with the previous PR. We should test if the degradation is acceptable.

Before

image

After

image

The terminal implementation uses a custom double buffering
implementation for rendering the current line. On most Platforms (Linux
and MacOS) the current implementation will always render the
double-buffered image at 100% zoom, even if the target zoom is higher.

This change adapts the implementation to directly render into the actual
control and enable native double buffering for the control instead. This
ensures that the contents are rendered at the actual target zoom,
producing sharper results on HiDPI monitors when using MacOS or Linux.

Fixes eclipse-platform#2295

Fixes eclipse-platform#2191
# Conflicts:
#	terminal/bundles/org.eclipse.terminal.control/src/org/eclipse/terminal/internal/textcanvas/TextLineRenderer.java
On monitors with zoom != 100% on Windows, symbols in the Terminal appear
cut-off. This can be avoided by enabled advanced mode for the GC used
for rendering the text.
@github-actions
Copy link
Contributor

Test Results

 1 977 files  ±0   1 977 suites  ±0   1h 36m 6s ⏱️ - 1m 14s
 4 743 tests ±0   4 719 ✅ ±0   24 💤 ±0  0 ❌ ±0 
14 229 runs  ±0  14 047 ✅ ±0  182 💤 ±0  0 ❌ ±0 

Results for commit 9ec63b9. ± Comparison against base commit 63797d0.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant