Same Java Fonts Slightly Different in Eclipse vs JNLP

一个人想着一个人 提交于 2019-12-11 02:56:09

问题


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!


回答1:


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



来源:https://stackoverflow.com/questions/12219104/same-java-fonts-slightly-different-in-eclipse-vs-jnlp

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!