Re: [JAVA2D] new Font() always returns the wrong font

2007-01-30 Thread Jan Bösenberg (INCORS GmbH)
Phil, thanks for the very fast response. For us this bug is not critical, but since this is a regression, maybe we can see a bugfix introduced in a JDK 6 update? In any case, thanks for the insight. Jan Phil Race schrieb: I just filed bug 6517861: Installing font of family Times on Windows

Re: [JAVA2D] new Font() always returns the wrong font

2007-01-30 Thread Phil Race
Jan Bösenberg (INCORS GmbH) wrote: Phil, thanks for the very fast response. For us this bug is not critical, but since this is a regression, maybe we can see a bugfix introduced in a JDK 6 update? I was debating with myself about this one. I'll ask for the OK to backport it to 6u2 -phil.

[JAVA2D] new Font() always returns the wrong font

2007-01-25 Thread Jan Bösenberg (INCORS GmbH)
Hello, on one test system we found a really strange behavious of a little app, which creates a Font instance for each available font familiy name. The code looks like this: String[] fontFamilyNames = GraphicsEnvironment.getLocalGraphicsEnvironment().getAvailableFontFamilyNames();

Re: [JAVA2D] new Font() always returns the wrong font

2007-01-25 Thread Alexey Ushakov
Hello Jan, It seems like a bug. Could you please provide more details concerning this problem. What version jdk are you using? Did you try jdk6.0 with your test case? Best Regards, Alexey Java2D Team Jan Bösenberg (INCORS GmbH) wrote: Hello, on one test system we found a really strange

Re: [JAVA2D] new Font() always returns the wrong font

2007-01-25 Thread Phil Race
Do you mean that the same font installed on other PCs is OK? Is this XP SP2 ? Which JDK version? What does that font say its full name is? ie font.getFontName()? Perhaps you could email me the font (just to me please, not the whole list). But its also possible something is messed up in the

Re: [JAVA2D] new Font() always returns the wrong font

2007-01-25 Thread Jan Bösenberg (INCORS GmbH)
Hello Alexey, yes I am using JDK 1.6 (b105). Here is some additional information about the Times font that I extracted with Microsoft's Font Properties Editor: Font family name: Times Version: 19: 34455: 1999 Weight and style: Roman PostScript name: Times-Roman Unique name:

Re: [JAVA2D] new Font() always returns the wrong font

2007-01-25 Thread Phil Race
I just filed bug 6517861: Installing font of family Times on Windows hides Times New Roman I can give you a brief explanation of what's happening but I don't have a workaround for you. In jdk 6 we started to use GDI for font lookups for performance and it looks as if we are running afoul of