[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Bug awt/26758] GdkFontPeer.getPostScriptFontName unimplemented
From: |
pere at hungry dot com |
Subject: |
[Bug awt/26758] GdkFontPeer.getPostScriptFontName unimplemented |
Date: |
19 Mar 2006 19:42:26 -0000 |
------- Comment #4 from pere at hungry dot com 2006-03-19 19:42 -------
This is the problematic code:
// this font may or may not be installed
font = new Font(name, Font.PLAIN, size);
// if the ps name matches, then we're in fine shape
if (!font.getPSName().equals(psname)) {
// on osx java 1.4 (not 1.3.. ugh), you can specify the ps name
// of the font, so try that in case this .vlw font was created on pc
// and the name is different, but the ps name is found on the
// java 1.4 mac that's currently running this sketch.
font = new Font(psname, Font.PLAIN, size);
}
// check again, and if still bad, screw em
if (!font.getPSName().equals(psname)) {
font = null;
}
When getPSName() return null, the test throw NullPointerException.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=26758
- [Bug awt/26758] New: GdkFontPeer.getPostScriptFontName unimplemented, roman at kennke dot org, 2006/03/19
- [Bug awt/26758] GdkFontPeer.getPostScriptFontName unimplemented, roman at kennke dot org, 2006/03/19
- [Bug awt/26758] GdkFontPeer.getPostScriptFontName unimplemented, roman at kennke dot org, 2006/03/19
- [Bug awt/26758] GdkFontPeer.getPostScriptFontName unimplemented,
pere at hungry dot com <=
- [Bug awt/26758] GdkFontPeer.getPostScriptFontName unimplemented, mark at gcc dot gnu dot org, 2006/03/19
- [Bug awt/26758] GdkFontPeer.getPostScriptFontName unimplemented, mark at gcc dot gnu dot org, 2006/03/20
- [Bug awt/26758] GdkFontPeer.getPostScriptFontName unimplemented, mark at gcc dot gnu dot org, 2006/03/20