#40 remove use of internal sun.font.FontManager class

open
nobody
None
5
2010-04-22
2010-04-22
No

sun.font.FontManager is an internal class. StyleContext seems to have similar functionality (and makes this call internally).

Discussion

  • James Ahlborn

    James Ahlborn - 2010-04-22
     
  • Christian d'Heureuse

    Lobo 0.98.4 does not work any more with Java 1.7.0-ea-b145 because of the reference to sun.font.FontManager.

    The following exception occurs:
    java.lang.IncompatibleClassChangeError: Found interface sun.font.FontManager, but class was expected
    at org.lobobrowser.util.gui.FontFactory.createFont(FontFactory.java:210)

     
  • Iade Gesso

    Iade Gesso - 2011-08-23

    I've just solved this issue substituting << FontManager.getCompositeFontUIResource(new Font(name, style, size)); >> with << new javax.swing.plaf.FontUIResource(name, style, size); >> in << org.lobobrowser.util.gui.FontFactory.java >> at line 210.

    How can I update the cvs tree?

     

Log in to post a comment.