JDK-5086814 : RFE: Java 2D: consider Xrender for anti-aliased text on remote X11
  • Type: Enhancement
  • Component: client-libs
  • Sub-Component: 2d
  • Affected Version: 5.0
  • Priority: P4
  • Status: Closed
  • Resolution: Duplicate
  • OS: generic
  • CPU: generic
  • Submitted: 2004-08-13
  • Updated: 2010-05-28
  • Resolved: 2010-05-28
Related Reports
Duplicate :  
Description
Java 2D text API requirements exceed the capabilities of core X11 protocol.
Gnome/GTK desktop apps faced the same problem.
ie Java 2D and GTK apps share in common that they use client-side fonts
and want to support (eg) anti-aliased text on remote X11 displays, but
core X11 protocol doesn't support compositing.
The GTK solution has been to adopt the XRender extension.
This extension is in practice "new", as its only available on recent
X11 distributions. GTK is co-shipping with those releases so could adopt
it in sync. New releases of JDK for Solaris and Linux can now expect to 
be deployed into that same environment so can also start gt leverage this.

In this RFE Xrender is being proposed to be used for text rendering,
when a faster solution (eg OpenGL) is not available.

Xrender potentially could be used for bitmap text as well as A-A text
and/or used for A-A text locally as well as remotely. What exactly is
selected will depend on the observed performance. ie its reasonable
to suppose that it would be faster for AA text over remote X11 but
its not clear it would be faster locally than using shared memory.

Additionally if other compositing operations are being used over remote
X11 it may be in that case there's no advantage to be gained from Xrender.

Comments
EVALUATION There's an xrender pipeline implemented as 6307603: [X11] Use RENDER extension for complex operations done in software which incorporates using Xrender for text operations.
28-05-2010

EVALUATION As per description ###@###.### 2004-08-13 =============================
13-08-2004