在Eclipse和JNLP中相同的Java字体略有不同 [英] Same Java Fonts Slightly Different in Eclipse vs JNLP

查看:200
本文介绍了在Eclipse和JNLP中相同的Java字体略有不同的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

首先,我没有任何代码,因为这是一个普遍的问题,我看到,只是想知道是否有其他人曾经遇到过。



<就像我可以告诉日食和JNLP UI属性是相同的...所以,我所看到的是,当分配完全相同的组件 - 任何组件 - 完全相同的字体(我使用宋体,粗体, 12的一切),JNLP和Eclipse的结果稍有不同,即使是在同一台计算机上运行。



这里有一个截图(Eclipse的结果在上面,JNLP结果在底部):





Anyhoo,如果有人见过或有任何建议,将不胜感激。



谢谢!

解决方案

这很可能是JRE用于文本反锯齿的属性。访问此代码进行实验。




First of all, I don't really have any code, because it's a universal problem I'm seeing and am just wondering if anyone else has ever encountered it.

As near as I can tell the eclipse and JNLP UI properties are identical...So, what I am seeing is that when assigning the exact same component - any component - the exact same font (I'm using Arial, Bold, 12 for everything) and the results in JNLP and Eclipse are slightly different, even when run on the exact same computer.

Here's a screenshot (Eclipse result is on top, JNLP result is on bottom):

Anyhoo, if anyone has ever seen this or has any suggestions, that would be appreciated.

Thanks!

解决方案

It is most probably the properties used by the JRE for text antialiasing. Visit this code to experiment.

这篇关于在Eclipse和JNLP中相同的Java字体略有不同的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆