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

Canvas#strokeText says it strokes at 0,0 as the top left corner but does otherwise

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: P4
    • Resolution: Fixed
    • Affects Version/s: 9
    • Fix Version/s: 8u20
    • Component/s: javafx
    • Labels:
    • Environment:

      mac os, 1.8.0 ea b102

      Description

      Run the snippet and see the text painted off-screen on y

      public class TestTable extends Application {

      public static void main(String[] args) {
      launch(args);
      }

      @Override
      public void start(Stage primaryStage) throws Exception {
      BorderPane p = new BorderPane();

      Canvas c = new Canvas(400,400);
      c.getGraphicsContext2D().strokeText("Test", 0, 5);
      p.setCenter(c);

      Scene s = new Scene(p,400,400);
      primaryStage.setScene(s);
      primaryStage.show();
      }

      }

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              flar Jim Graham
              Reporter:
              tschindl Tom Schindl
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Imported: