[OpenJDK 2D-Dev] X11 uniform scaled wide lines and dashed lines; STROKE_CONTROL in Pisces

Clemens Eisserer linuxhippy at gmail.com
Mon Jul 5 20:49:17 UTC 2010

Hi Denis,

> In sun.java2d.x11.X11Renderer, line 340, it says:
>            // REMIND: X11 can handle uniform scaled wide lines
>            // and dashed lines itself if we set the appropriate
>            // XGC attributes (TBD).
> Also, it is a known issue that Pisces does not support the STROKE_CONTROL
> hint.
> I have been wanting to implement these two features, and I have a few questions:
> Has anything been decided on the first issue? Do we still want to implement it?
> If yes, can anyone give me some rough suggestions as to how I can get started?

Its just my personal opinion, but I would recommend not implementing it.
Xorg falls back to software anyway for anything more complex than
solid rectangles and blits
and those code-paths will only be triggered for non-antialised
rendering with solid colors.

Implementing it in Pisces would help every backend OpenJDK supports :)

Just checked and I also ignore the STROKE_CONTROL stuff completly in
the cairo based Jules rasterizer.
Curious how that could be mapped to Cairo, do you know any more
in-depth explanation how it works - or examples how it should look

Thanks, Clemens

More information about the 2d-dev mailing list