Search code examples
eclipsefontsswtrenderingantialiasing

SWT Rendering small Fonts


I am currently trying to render small fonts (Tahoma regular 8) using the SWT GC on Windows 7. My problem is, that the last two digits are always very close to each other:


(source: iachelini.de)

I noticed the same effect when drawing beveled strings:


(source: iachelini.de)

According to the javadoc the setAntialias method only relates to non-font drawings. I wonder what other things I could do. To turn Clear-Type off is -unfortunately- no option.

Thanks for your time.


Solution

  • Have you tried GC#setTextAntialias?