Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8090413

Need new hints to control how Text node is rendered

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Unresolved
    • Icon: P3 P3
    • tbd
    • fx1.3
    • javafx
    • 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.

            prr Philip Race
            campbell Christopher Campbell (Inactive)
            Votes:
            1 Vote for this issue
            Watchers:
            10 Start watching this issue

              Created:
              Updated:
              Imported: