Hi, I applied this little patch to prevent a NPE when using a JTextField with the X peers.
Regards Robert 2007-05-25 Robert Schuster <[EMAIL PROTECTED]> * gnu/java/awt/font/opentype/OpenTypeFont.java: (getGlyphIndex): Call getGlyphCharMap() instead of accessing cmap field directly.
Index: gnu/java/awt/font/opentype/OpenTypeFont.java =================================================================== RCS file: /sources/classpath/classpath/gnu/java/awt/font/opentype/OpenTypeFont.java,v retrieving revision 1.7 diff -u -r1.7 OpenTypeFont.java --- gnu/java/awt/font/opentype/OpenTypeFont.java 8 May 2007 14:40:12 -0000 1.7 +++ gnu/java/awt/font/opentype/OpenTypeFont.java 25 May 2007 09:44:17 -0000 @@ -626,7 +626,7 @@ */ public int getGlyphIndex(int c) { - return cmap.getGlyph(c); + return getCharGlyphMap().getGlyph(c); } /**
signature.asc
Description: OpenPGP digital signature