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

Chinese will be covered by non Chinese When using PrinterJob to print the Text node

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Not an Issue
    • Icon: P3 P3
    • None
    • 8
    • javafx

              PrinterJob job = PrinterJob.createPrinterJob();
              if (job != null) {
                  VBox box = new VBox();
                  Text contact = new Text("电话:0755-12345678 传真:9876543"); // line 4
                  Text contactEn = new Text("TEL:0755-12345678 FAX:9876543"); // line 5
                  Text allChinese = new Text("电话 传真 电话 传真"); // line 6
                  Button btn = new Button("电话:0755");// line 7
                  box.getChildren().addAll(contact, contactEn, allChinese, btn);
                  boolean success = job.printPage(box);
                  if (success) {
                      job.endJob();
                  }
              }

      ---------------------------------------
      line 4 ,the non Chinese "0755-12345678" will be on the top of the Chinese "电话:"
      line 5 is ok
      line 6 is ok
      line 7 is ok

            prr Philip Race
            duke J. Duke
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported: