bug-classpath
[Top][All Lists]
Advanced

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

[Bug awt/26758] GdkFontPeer.getPostScriptFontName unimplemented


From: mark at gcc dot gnu dot org
Subject: [Bug awt/26758] GdkFontPeer.getPostScriptFontName unimplemented
Date: 19 Mar 2006 19:56:31 -0000


------- Comment #5 from mark at gcc dot gnu dot org  2006-03-19 19:56 -------
And psname is read from the font file. It seems the code assumes this is equal
to the font family name. So doing something like this might be a good idea as a
start:

diff -u -r1.8 GdkFontPeer.java
--- gnu/java/awt/peer/gtk/GdkFontPeer.java      16 Mar 2006 20:21:09 -0000    
1.8
+++ gnu/java/awt/peer/gtk/GdkFontPeer.java      19 Mar 2006 19:48:44 -0000
@@ -158,7 +158,7 @@

   public String getPostScriptName(Font font)
   {
-    return null;
+    return this.familyName;
   }

   public boolean canDisplay (Font font, char c)


BTW. We also have a (no unused) GtkFontPeer implementation that should be
removed to avoid confusion.


-- 

mark at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
     Ever Confirmed|0                           |1
   Last reconfirmed|0000-00-00 00:00:00         |2006-03-19 19:56:30
               date|                            |


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





reply via email to

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