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

Need a way to get the bounds of text drawn by javafx.scene.canvas.GraphicsContext fillText method

    Details

      Description

      I would like to implement a TextEditor component, and need low-level methods for producing text. The GraphicsContext's fillText method is very performant, but it doesn't report back useful information about the text which was painted on the Canvas. Please make it return a Bounds instance instead of void, so that I can use this for calculating cursor positions.

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              athiemejfx Andre Thieme (Inactive)
            • Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

              Dates

              • Created:
                Updated:
                Imported: