Skip to content

Commit c02addc

Browse files
committed
Enable anti-aliasing for Terminal text
Fixes #2295
1 parent 592fb5e commit c02addc

File tree

1 file changed

+2
-0
lines changed
  • terminal/bundles/org.eclipse.terminal.control/src/org/eclipse/terminal/internal/textcanvas

1 file changed

+2
-0
lines changed

terminal/bundles/org.eclipse.terminal.control/src/org/eclipse/terminal/internal/textcanvas/TextLineRenderer.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818

1919
import java.util.Map;
2020

21+
import org.eclipse.swt.SWT;
2122
import org.eclipse.swt.graphics.Color;
2223
import org.eclipse.swt.graphics.Font;
2324
import org.eclipse.swt.graphics.GC;
@@ -63,6 +64,7 @@ public void drawLine(ITextCanvasModel model, GC gc, int line, int x, int y, int
6364
}
6465
Image buffer = new Image(gc.getDevice(), width, height);
6566
GC doubleBufferGC = new GC(buffer);
67+
doubleBufferGC.setAntialias(SWT.ON);
6668
if (line < 0 || line >= getTerminalText().getHeight() || colFirst >= getTerminalText().getWidth()
6769
|| colFirst - colLast == 0) {
6870
fillBackground(doubleBufferGC, 0, 0, width, height);

0 commit comments

Comments
 (0)