-
Enhancement
-
Resolution: Unresolved
-
P3
-
fx1.3
-
Mac OS X 10.5.8, JDK 5
We need to add one or two new knobs to the Text node API to allow for more control over how text is rendered.
The following API suggestions are just meant to demonstrate at a high level what is desired (not worrying about wording or naming)...
1) The first knob would control rendering performance/quality:
public var renderHint:TextRenderHint = <DEFAULT, QUALITY, SPEED>
I'm very hesitant to use these names. What I really mean here is:
DEFAULT == what we have now, which is good perf/quality for non-animating text
QUALITY == use text outline when rendering, good for large animating/scaling text
SPEED == scale glyph images, quality will suffer when the scale factor gets
too big or too small, but should be very fast for fast moving animations
where quality isn't noticeable
2) The second knob might interact with the first, and would control antialiasing behavior (no aa, grayscale aa, lcd aa). I'm less sure about what is needed here; only including it here because it came up in a related discussion I had with Phil.
The following API suggestions are just meant to demonstrate at a high level what is desired (not worrying about wording or naming)...
1) The first knob would control rendering performance/quality:
public var renderHint:TextRenderHint = <DEFAULT, QUALITY, SPEED>
I'm very hesitant to use these names. What I really mean here is:
DEFAULT == what we have now, which is good perf/quality for non-animating text
QUALITY == use text outline when rendering, good for large animating/scaling text
SPEED == scale glyph images, quality will suffer when the scale factor gets
too big or too small, but should be very fast for fast moving animations
where quality isn't noticeable
2) The second knob might interact with the first, and would control antialiasing behavior (no aa, grayscale aa, lcd aa). I'm less sure about what is needed here; only including it here because it came up in a related discussion I had with Phil.
- relates to
-
JDK-8090643 Add a variant of text smoothing to deal with rotated text at higher versus lower quality
- Open
-
JDK-8102278 Sub-pixel accurate rendering of Text for smooth animation
- Closed
-
JDK-8090349 Add property to control antialiasing of ImageView
- Open
-
JDK-8102847 Need a way to avoid jittery, pixelated text when scaling a Label or Text node in an animation
- Resolved