SWT 渲染小字体
我目前正在尝试在 Windows 7 上使用 SWT GC 渲染小字体(Tahoma Regular 8)。我的问题是,最后两位数字总是彼此非常接近:
(来源:iachelini.de)
我注意到同样的效果绘制斜角字符串:
(来源:iachelini.de)
根据javadoc setAntialias该方法仅涉及非字体绘图。我想知道我还能做些什么其他事情。不幸的是,没有办法关闭 Clear-Type。
感谢您抽出时间。
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.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
您尝试过 GC#setTextAntialias 吗?
Have you tried
GC#setTextAntialias
?我也有 win7,通过
setAntialiasing(SWT.OFF)
关闭抗锯齿功能在 SWT 示例中对我有用。I have also win7 and turning off the antialiasing by
setAntialiasing(SWT.OFF)
is working for me in SWT examples..