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

XMLWordPrintable

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

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

      }

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

              Created:
              Updated:
              Resolved:
              Imported: