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

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P4 P4
    • 8u20
    • 9
    • javafx
    • mac os, 1.8.0 ea b102

      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();
      }

      }

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

              Created:
              Updated:
              Resolved:
              Imported: