Java binary compatibility issue: sun.font.FontManager class became interface

五迷三道 提交于 2019-11-30 13:56:05

I think 'sun.font.FontManager'was removed with Java7, so if you must use it (I'd recommend against it and look for another package instead) you could try running it with java6.

The lobobrowser project is dead, but some nice user comittet a patch to fix your problem:

http://sourceforge.net/tracker/?func=detail&aid=2991043&group_id=139023&atid=742262

Since a dead project doesn't release any patched jars, I did it ;-) Find a cobra-gp-0.98.5.jar with the above patch applied at : http://www.wikisquare.de/public/cobra-gp-0.98.5.jar

javax.swing.text.StyleContext.getDefaultStyleContext.getFont might work for you, across JDK releases.

See further http://elliotth.blogspot.com.au/2007/04/far-east-asian-fonts-with-java-7-on.html

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