[macos] Newlines and tabs are not ignored when drawing text to a Graphics2D object

XMLWordPrintable

    • Type: Bug
    • Resolution: Fixed
    • Priority: P4
    • 25
    • Affects Version/s: 23, 24, 25
    • Component/s: client-libs
    • 2d
    • b23

      On other platforms like Windows and Linux, the \n, \r and \t characters are ignored when drawing text to a Graphics2D object. On macOS this is not currently the case.

      See, for example, CMap.getControlCodeGlyph(int, boolean) or RasterPrinterJob.removeControlChars(String).

      This bug was found while running test/jdk/java/awt/print/PrinterJob/PrintTextTest.java on macOS.

            Assignee:
            Daniel Gredler
            Reporter:
            Daniel Gredler
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated:
              Resolved: