Submitted On 05-DEC-2001
jahooid01
I encounterd the same problem on Windows NT while trying to run Font2DTest.html from \demo directory. I
thought it might have to do with some fonts which are corrupted (!). So I manually deleted all the fonts,
deleted registry entries for all the fonts and installed them back in the original font directory. Well, I
followed all the steps mentioned on MS site religiously! And the problem persists! So what you have said
above in 'Evaluation section' seems to be the problem area. A graceful error reporting about the font
problem will be appreciated by the native code along with the workaround logic like 'If error then report
error to stderr and move on to the next font on the list'. Windows for whatever reasons does not tell about
errors in fonts while installing.
Submitted On 29-JAN-2002
heistp
I encountered the same problem in Windows 2000 while
developing a font selection dialog box.
Submitted On 30-JAN-2002
heistp
I noticed that in Windows 2000 the bad fonts were some OCR
fonts that ship in a default install. So, as a workaround
when I'm building up my fonts list I just do this:
GraphicsEnvironment environment =
GraphicsEnvironment.getLocalGraphicsEnvironment();
Font[] fonts = environment.getAllFonts ();
LinkedList fontsList = new LinkedList ();
for (int i = 0; i < fonts.length; i++)
if (!fonts[i].getName().startsWith("OCR")) // !!!
workaround for JDK 1.4 / Win2K font bug
fontsList.add (fonts[i]);
YMMV
Submitted On 03-JUN-2002
kshanti
The font "QuickType" also does it
PLEASE NOTE: JDK6 is formerly known as Project Mustang
|