Skip to content

Commit b8576eb

Browse files
Daniel Gredlerprrace
authored andcommitted
6562489: Font-Renderer should ignore invisible characters \u2062 and \u2063
Reviewed-by: avu, prr
1 parent 7a0832f commit b8576eb

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

test/jdk/java/awt/font/TextLayout/FormatCharAdvanceTest.java

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323

2424
/**
2525
* @test
26-
* @bug 8208377
26+
* @bug 8208377 6562489
2727
* @summary Confirm that format-category glyphs are not rendered or measured.
2828
*/
2929

@@ -174,6 +174,9 @@ private static void testChars(BufferedImage image, Graphics2D g2d, Font font) {
174174
testChar('\u202D', image, g2d, font); // left-to-right override (LRO)
175175
testChar('\u202E', image, g2d, font); // right-to-left override (RLO)
176176
testChar('\u2060', image, g2d, font); // word joiner (WJ)
177+
testChar('\u2061', image, g2d, font); // function application
178+
testChar('\u2062', image, g2d, font); // invisible times
179+
testChar('\u2063', image, g2d, font); // invisible separator
177180
testChar('\u2066', image, g2d, font); // left-to-right isolate (LRI)
178181
testChar('\u2067', image, g2d, font); // right-to-left isolate (RLI)
179182
testChar('\u2068', image, g2d, font); // first strong isolate (FSI)

0 commit comments

Comments
 (0)