Re: [JAVA2D] Java2D/Swing problems w/small, bold fonts?

2007-09-11 Thread java2d
Looks like you are using Sun's bundled Lucida fonts instead of the system fonts. E.g. Lucida Sans Typewriter for Monospaced in Swing. That and the low-quality of Java's integrated font renderer (it is a third-party product Sun bundles with the JDK) are notorious for ugly looking fonts. Try to

Re: [JAVA2D] Java2D/Swing problems w/small, bold ClearType fonts?

2007-09-11 Thread Phil Race
-phil. [EMAIL PROTECTED] wrote: - With Windows Display - Appearance - Effects font smoothing set to ClearType, Monospaced bold 13 looks chunky in Swing (irrespective of Swing anti-aliasing settings) and normal in AWT. (By normal, I mean roughly identical to Windows Notepad. I cannot compare

Re: [JAVA2D] Java2D/Swing problems w/small, bold ClearType fonts?

2007-09-11 Thread java2d
JDK does use the system's Courier New as the primary font for monospaced (the suggestion from another poster you are getting a Lucida font is incorrect). Ah, I thought it looked more like Courier New. Thanks for confirming. What this appears to come down to is something MS are doing to make

Re: [JAVA2D] Java2D/Swing problems w/small, bold ClearType fonts?

2007-09-11 Thread Phil Race
So why does AWT get the ClearType rendering? Does it drop down to native font rendering? The AWT components are the windows native components, and so windows (GDI) does all their rendering, not just the text. -phil.

Re: [JAVA2D] Java2D/Swing problems w/small, bold ClearType fonts?

2007-09-11 Thread Phil Race
Phil Race wrote: font smoothing) then you'll see that notepad is bold. To see what I mean, if you set Courier New Bold at pt size 16 (using 96 dpi) in windows notepad, Sorry, that should be 12 pt in windows, which == 16 pt in JDK -phil

[JAVA2D] Why was java.awt.geom.GeneralPath made final?

2007-09-11 Thread Olivier Lefevre
Subject says it all. Thanks, -- O.L. === To unsubscribe, send email to [EMAIL PROTECTED] and include in the body of the message signoff JAVA2D-INTEREST. For general help, send email to [EMAIL PROTECTED] and include in the

Re: [JAVA2D] Why was java.awt.geom.GeneralPath made final?

2007-09-11 Thread Jim Graham
It is made final to lock in its implementation since internal code relies on its internal structure. In 1.6 it is just a thin veneer over Path2D.Float which is not final (though its implementation-based methods are final). Out of curiosity - why are you wanting to subclass it?

Re: [JAVA2D] Java2D/Swing problems w/small, bold ClearType fonts?

2007-09-11 Thread java2d
Phil wrote: What this appears to come down to is something MS are doing to make Courier New Bold look less bold, specifically in ClearType mode. OK, I tried a few other monospaced fonts, and my two faves also have the same problem: http://www.jay.fm/files/consolas.png

Re: [JAVA2D] Why was java.awt.geom.GeneralPath made final?

2007-09-11 Thread Olivier Lefevre
It is made final to lock in its implementation since internal code relies on its internal structure. Eh? That could be said of almost any class with internal state. Out of curiosity - why are you wanting to subclass it? 2 reasons: I wanted to make a debug version in the manner of

Re: [JAVA2D] Java2D/Swing problems w/small, bold ClearType fonts?

2007-09-11 Thread Phil Race
The Lucida case looks marginally bolder in notepad .. so this isn't exactly what you were describing. I don't see much difference in the consolas one. But 13 is a bad size to be sure to compare properly because it doesn't exactly equate 12 pt in JDK/Font2DTest and 9 pt at 96 dpi in notepad