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

[macosx] Incorrect char to glyph mapping printing on OSX 10.10

    Details

    • Subcomponent:
      2d
    • Resolved In Build:
      b143

      Backports

        Description

        Component: SceneGraphTests manual
        Build: javafx9b66
        PlatForm: Mac OS 10.10

        Steps(the test case is test/manual/printing/Unattached.java):
        1.Press "Print dialog" button.
        2.Select one of the available printers.
        3.Press "Unattached" button. This will detach a node from scene(make it invisible).
        4.Click print.
        5.Repeat all previous steps but with "Unattached" button unpressed.
        7.Verify printed page is the same with "Unattached" pressed/unpressed.

        The actual result: The printed page seems abnormal with "Unattached" button pressed on mac10.10,please refer to attachment
        We tried this on Mac 10.9,everything is ok.
        1. GroupOfNodes.png
          23 kB
        2. HTMLEditor.png
          37 kB
        3. MultiLineText.png
          118 kB
        4. Pagination.png
          19 kB
        5. printed.jpg
          928 kB
        6. printed-diff.jpg
          30 kB
        7. ProgressIndicator.png
          42 kB
        8. Unattached.jpg
          1.86 MB

          Issue Links

            Activity

            Hide
            tonyli Tony Li added a comment -
            There is the same issue happened on Mac10.12-Beta-x64-jdk8u102b14-64bit.
            RULE "test/manual/printing/Button.java" any any
            RULE "test/manual/printing/Checkbox.java" any any
            RULE "test/manual/printing/GroupOfNodes.java" any any
            RULE "test/manual/printing/HTMLEditor.java" any any
            RULE "test/manual/printing/Hyperlink.java" any any
            RULE "test/manual/printing/Label.java" any any
            RULE "test/manual/printing/MenuButton.java" any any
            RULE "test/manual/printing/MultiLineText.java" any any
            RULE "test/manual/printing/Pagination.java" any any
            RULE "test/manual/printing/PasswordField.java" any any
            RULE "test/manual/printing/ProgressIndicator.java" any any
            RULE "test/manual/printing/NativePrintDialog.java" any any
            RULE "test/manual/printing/Text.java" any any
            RULE "test/manual/printing/TextArea.java" any any
            RULE "test/manual/printing/TextField.java" any any
            RULE "test/manual/printing/Threads.java" any any
            RULE "test/manual/printing/TitledPane.java" any any
            RULE "test/manual/printing/ToggleButtons.java" any any
            RULE "test/manual/printing/ToolBar.java" any any
            RULE "test/manual/printing/Unattached.java" any any
            Show
            tonyli Tony Li added a comment - There is the same issue happened on Mac10.12-Beta-x64-jdk8u102b14-64bit. RULE "test/manual/printing/Button.java" any any RULE "test/manual/printing/Checkbox.java" any any RULE "test/manual/printing/GroupOfNodes.java" any any RULE "test/manual/printing/HTMLEditor.java" any any RULE "test/manual/printing/Hyperlink.java" any any RULE "test/manual/printing/Label.java" any any RULE "test/manual/printing/MenuButton.java" any any RULE "test/manual/printing/MultiLineText.java" any any RULE "test/manual/printing/Pagination.java" any any RULE "test/manual/printing/PasswordField.java" any any RULE "test/manual/printing/ProgressIndicator.java" any any RULE "test/manual/printing/NativePrintDialog.java" any any RULE "test/manual/printing/Text.java" any any RULE "test/manual/printing/TextArea.java" any any RULE "test/manual/printing/TextField.java" any any RULE "test/manual/printing/Threads.java" any any RULE "test/manual/printing/TitledPane.java" any any RULE "test/manual/printing/ToggleButtons.java" any any RULE "test/manual/printing/ToolBar.java" any any RULE "test/manual/printing/Unattached.java" any any
            Hide
            vdyakov Victor Dyakov added a comment -
            Phil, it might be deferred as non-reg-9 , nevertheless you can fix it in 9, in such case just re-target right before your fix push
            Show
            vdyakov Victor Dyakov added a comment - Phil, it might be deferred as non-reg-9 , nevertheless you can fix it in 9, in such case just re-target right before your fix push
            Hide
            prr Philip Race added a comment - - edited
            I have recategorised this as a 2D issue. Although only FX is affected the solution is entirely on the JDK side.

            FX looks up some UI "system" fonts via special API calls and these are fonts
            that are not otherwise enumerated by CoreText.
             FX expects JDK to be able to access these fonts but it cannot.
            We need to make the same API calls on JDK.
            The exact fonts returned vary by MacOS release so it seems hard to create a JDK regression
            test but on the FX side it is seen instantly if you print a UI control as the text is messed up
            due to incorrect glyph ids.
            Show
            prr Philip Race added a comment - - edited I have recategorised this as a 2D issue. Although only FX is affected the solution is entirely on the JDK side. FX looks up some UI "system" fonts via special API calls and these are fonts that are not otherwise enumerated by CoreText.  FX expects JDK to be able to access these fonts but it cannot. We need to make the same API calls on JDK. The exact fonts returned vary by MacOS release so it seems hard to create a JDK regression test but on the FX side it is seen instantly if you print a UI control as the text is messed up due to incorrect glyph ids.
            Hide
            hgupdate HG Updates added a comment -
            URL: http://hg.openjdk.java.net/jdk9/client/jdk/rev/f950cc6004c6
            User: prr
            Date: 2016-10-17 20:54:15 +0000
            Show
            hgupdate HG Updates added a comment - URL: http://hg.openjdk.java.net/jdk9/client/jdk/rev/f950cc6004c6 User: prr Date: 2016-10-17 20:54:15 +0000
            Hide
            hgupdate HG Updates added a comment -
            URL: http://hg.openjdk.java.net/jdk9/jdk9/jdk/rev/f950cc6004c6
            User: lana
            Date: 2016-11-03 02:18:06 +0000
            Show
            hgupdate HG Updates added a comment - URL: http://hg.openjdk.java.net/jdk9/jdk9/jdk/rev/f950cc6004c6 User: lana Date: 2016-11-03 02:18:06 +0000

              People

              • Assignee:
                prr Philip Race
                Reporter:
                tolli Tony Li (Inactive)
              • Votes:
                1 Vote for this issue
                Watchers:
                9 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Imported: