File tree Expand file tree Collapse file tree 1 file changed +7
-9
lines changed
test/jdk/java/awt/font/TextLayout Expand file tree Collapse file tree 1 file changed +7
-9
lines changed Original file line number Diff line number Diff line change 1
1
/*
2
- * Copyright (c) 2016, 2017 , Oracle and/or its affiliates. All rights reserved.
2
+ * Copyright (c) 2016, 2020 , Oracle and/or its affiliates. All rights reserved.
3
3
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4
4
*
5
5
* This code is free software; you can redistribute it and/or modify it
22
22
*/
23
23
24
24
/* @test
25
- * @key headful
26
25
* @summary verify Arab Diacritic Positioning
27
- * @bug 8168759
26
+ * @bug 8168759 8248352
28
27
*/
29
28
30
29
import java .awt .Font ;
@@ -46,19 +45,18 @@ public class ArabicDiacriticTest {
46
45
static final String STR1 = "\u0644 \u0639 \u064e \u0629 " ;
47
46
static final String STR2 = "\u0644 \u0639 \u0629 " ;
48
47
49
- static JFrame frame ;
50
48
static final String FONT = "DejaVu Sans" ;
51
49
52
- public static void main (String args []) throws Exception {
53
- showText (); // for a human
50
+ public static void main (String [] args ) throws Exception {
51
+ if ((args .length > 0 ) && (args [0 ].equals ("-show" ))) {
52
+ showText (); // for a human
53
+ }
54
54
measureText (); // for the test harness
55
- Thread .sleep (5000 );
56
- frame .dispose ();
57
55
}
58
56
59
57
static void showText () {
60
58
SwingUtilities .invokeLater (() -> {
61
- frame = new JFrame ();
59
+ JFrame frame = new JFrame ();
62
60
JLabel label = new JLabel (SAMPLE );
63
61
Font font = new Font (FONT , Font .PLAIN , 36 );
64
62
label .setFont (font );
You can’t perform that action at this time.
0 commit comments