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

Need font/text measurement API

    Details

    • Type: Enhancement
    • Status: Open
    • Priority: P3
    • Resolution: Unresolved
    • Affects Version/s: fx2.0
    • Fix Version/s: tbd
    • Component/s: javafx
    • Labels:

      Description

      Presently the only way to measure text is to create a Text node, insert it into a scene, and
      ask for its bounds : logical or visual. To make matters a bit worse, those bounds will be
      padded because they are overloaded to handle dirty regions.
      To help lay out etc, a client will benefit from being able to ask for exact advance of at
      least a single line string (perhaps with styling ?). The client will need to specify
      a suitable render context (graphics transform and font) as well as the specific
      text for this to be valid.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                prr Philip Race
                Reporter:
                prr Philip Race
              • Votes:
                19 Vote for this issue
                Watchers:
                21 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Imported: