Monday, July 3, 2006, 10:47:14 AM, Hussein Shafie wrote: > Daniel Dekany wrote: [snip] >> (BTW, OT: J2SE 1.6 will support subpixel anti-aliasing (aka ClearType) >> for text. The current 1.6 beta already does. It would be good if that >> works in XEE... it already works for most GUI components of XEE, but >> not on the document view somehow.) > > In XXE v3.3, with J2SE *1.6*, when Options|Options, General section, > "Text Anti-aliasing" is turned on, you get: > [a] Text Anti-aliasing in the document view. > [b] No Anti-aliasing in the GUI: menus, dialogs, etc, on a few platforms > (e.g. Linux non-Gnome). > > The [b] problem has been fixed in v3.4 (not yet released). > > Now, you are speaking of *subpixel* anti-aliasing. Therefore please tell > us if the problem you report is about: > [1] Lack of Anti-aliasing in parts of XXE. > [2] OR you get Anti-aliasing in XXE, but not the kind of Anti-aliasing > you would like to get.
It's closer to [2]. For the menus and for some of the controls it always uses subpixel AA, i.e. independently of Options|Options, General section, "Text Anti-aliasing". However, the document view (where you see the XML document formatted with CSS, also the tree view of the XML document) is anti-aliased exactly like under 1.5, i.e. depending on Options|Options, General section, "Text Anti-aliasing", it is either no AA, or *pixel* AA. I guess it is the question of using java.awt.RenderingHints.VALUE_TEXT_ANTIALIAS_LCD_xxx (see: http://java.sun.com/javase/6/docs/technotes/guides/2d/flags.html#aaFonts) instead of java.awt.RenderingHints.VALUE_TEXT_ANTIALIAS_ON somewhere. (Note that the subpixel AA of Sun J2SE 1.6 doesn't use the font renderer of the host OS. It's in the case of Windows XP regrettable (or with positive attitude, it's matter of taste which is the better), also will be on any system where you fine-tune the subpixel rendering settings of the OS. Anyway, the user experience probably would be better if XXE uses SWT. Would be huge reworking, I know...) -- Best regards, Daniel Dekany

