> 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.
> 
> The new test class passes on Linux, Windows and macOS.

Daniel Gredler has updated the pull request incrementally with one additional 
commit since the last revision:

  Apply suggestions from code review
  
  Co-authored-by: Alexey Ivanov <alexey.iva...@oracle.com>

-------------

Changes:
  - all: https://git.openjdk.org/jdk/pull/23665/files
  - new: https://git.openjdk.org/jdk/pull/23665/files/db3a1ff7..2e37be11

Webrevs:
 - full: https://webrevs.openjdk.org/?repo=jdk&pr=23665&range=02
 - incr: https://webrevs.openjdk.org/?repo=jdk&pr=23665&range=01-02

  Stats: 8 lines in 1 file changed: 4 ins; 2 del; 2 mod
  Patch: https://git.openjdk.org/jdk/pull/23665.diff
  Fetch: git fetch https://git.openjdk.org/jdk.git pull/23665/head:pull/23665

PR: https://git.openjdk.org/jdk/pull/23665

Reply via email to