开发者

SWT Rendering small Fonts

开发者 https://www.devze.com 2023-04-03 09:24 出处:网络
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 alw开发者_开发技巧ays very close to each other:

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 alw开发者_开发技巧ays very close to each other:

SWT Rendering small Fonts

(source: iachelini.de)

I noticed the same effect when drawing beveled strings:

SWT Rendering small Fonts

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


Have you tried GC#setTextAntialias?


I have also win7 and turning off the antialiasing by setAntialiasing(SWT.OFF) is working for me in SWT examples..

SWT Rendering small Fonts

SWT Rendering small Fonts

0

精彩评论

暂无评论...
验证码 换一张
取 消