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

Need font/text measurement API

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Unresolved
    • Icon: P3 P3
    • tbd
    • fx2.0
    • javafx

      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.

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

              Created:
              Updated:
              Imported: