bug-classpath
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Bug awt/26648] New: java.awt.Font.createFont() needs to be implemented


From: hendrich at informatik dot uni-hamburg dot de
Subject: [Bug awt/26648] New: java.awt.Font.createFont() needs to be implemented
Date: 11 Mar 2006 17:50:45 -0000

I have several test applications that use Font.createFont() to load custom
truetype fonts. In current classpath, this method is implemented (so that
the JAPI coverage looks good), but the actual GTK peer implementation throws
UnsupportedOperationException...

I am well aware that custom truetype fonts are not too likely until Graphics2D
has been fixed, but I guess that a bug report is in order. 

Actually, I would rather prefer slightly lower (but more honest) JAPI scores
instead  of the current practice of having stub methods without any backup 
in the AWT (gtk/qt) peers. It seems that similar cases of Unsupported-
Operations sleep in javax.net and javax.security.



java.lang.UnsupportedOperationException
   at gnu.java.awt.peer.gtk.GtkToolkit.createFont (GtkToolkit.java:604)
   at java.awt.Font.createFont (Font.java:575)
   at jfig.gui.FontCache$ComputerModernFontsManager.loadComputerModernFonts
(FontCache.java:476)
   at jfig.gui.FontCache.loadComputerModernFonts (FontCache.java:462)
   at jfig.gui.FontCache.<init> (FontCache.java:264)


-- 
           Summary: java.awt.Font.createFont() needs to be implemented
           Product: classpath
           Version: 0.90
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: awt
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: hendrich at informatik dot uni-hamburg dot de


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=26648





reply via email to

[Prev in Thread] Current Thread [Next in Thread]