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

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

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: P4 P4
    • tbd
    • 23, 24
    • client-libs
    • 2d
    • In Review

      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.

            dgredler Daniel Gredler
            dgredler Daniel Gredler
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: