Hi all, some update on this ... in attach you can find a new test application to look how a big string (rotated by 45 degree) looks. I'll commit it asap under our tests.
Note that even without doing a screen capture, you can zoom the GUI
with the Pivot standard keystroke for it: <Ctrl><Shift> + Mouse Wheel
to zoom in/out.
In one of my dev environment (WinXP), with ClearType disabled all
looks bad (but for all applications :-), while enabling it (as should
always be, in all pc) things are better. Probably running tests with
one of latest JRE 7 makes things looks better ... I have to try.
What happens in other platforms ? Tell us ...
Note that all this depends on antialiasing text configuration in
Desktop settings, so it seems that you can't really force it via Java.
Using a system properties seems to give some result:
for example, pass to the JVM: -Dawt.useSystemAAFontSettings=on
or set (in code)
// System.setProperty("awt.useSystemAAFontSettings", "lcd");
System.setProperty("awt.useSystemAAFontSettings", "on");
as new global default for the application.
Some Info:
http://stackoverflow.com/questions/179955/how-do-you-enable-anti-aliasing-in-arbitrary-java-apps?rq=1
Other (old, but should be good the same) info:
http://old.nabble.com/Is-there-a-RenderingHint-for-ClearType-SubPixel-rendering--td19303631.html
Other info, just for reference:
http:// docs.oracle.com/javase/tutorial/2d/text/renderinghints.html
http://docs.oracle.com/javase/tutorial/2d/advanced/quality.html
So maybe we could look at add a style for specifying rendering hints
(name and value) in single components (need a jira issue, as
improvement, for it would be great) but don't know if useful.
What do you think ?
Bye
LabelAntialiasTest.java
Description: Binary data
