Skip to content

Commit

Permalink
JBR-6651 Exclude keycap emoji from EmojiVariation test.
Browse files Browse the repository at this point in the history
  • Loading branch information
YaaZ authored and vprovodin committed Mar 2, 2024
1 parent 7408661 commit 37ee425
Showing 1 changed file with 6 additions and 7 deletions.
13 changes: 6 additions & 7 deletions test/jdk/java/awt/font/EmojiVariation.java
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,6 @@ public class EmojiVariation {

// These emoji must be monochrome by default
private static final String[] SYMBOLS = {
"\u0023","\u002a","\u0030","\u0031","\u0032","\u0033","\u0034","\u0035","\u0036","\u0037","\u0038","\u0039",
"\u00a9","\u00ae","\u203c","\u2049","\u2122","\u2139","\u2194","\u2195","\u2196","\u2197","\u2198","\u2199",
"\u21a9","\u21aa","\u2328","\u23cf","\u23ed","\u23ee","\u23ef","\u23f1","\u23f2","\u23f8","\u23f9","\u23fa",
"\u24c2","\u25aa","\u25ab","\u25b6","\u25c0","\u25fb","\u25fc","\u2600","\u2601","\u2602","\u2603","\u2604",
Expand Down Expand Up @@ -93,14 +92,14 @@ public static void main(String[] args) {
// Platform-specific tricks
if (System.getProperty("os.name").toLowerCase().contains("linux")) {
// Many emoji on Linux don't have monochrome variants
Arrays.fill(SYMBOLS, 28, 37, null);
Arrays.fill(SYMBOLS, 83, 94, null);
Arrays.fill(SYMBOLS, 117, SYMBOLS.length, null);
Arrays.fill(SYMBOLS, 16, 25, null);
Arrays.fill(SYMBOLS, 71, 82, null);
Arrays.fill(SYMBOLS, 105, SYMBOLS.length, null);
} else if (System.getProperty("os.name").toLowerCase().contains("mac")) {
// Many emoji on macOS don't have monochrome variants
Arrays.fill(SYMBOLS, 28, 36, null);
Arrays.fill(SYMBOLS, 81, 94, null);
Arrays.fill(SYMBOLS, 127, SYMBOLS.length, null);
Arrays.fill(SYMBOLS, 16, 24, null);
Arrays.fill(SYMBOLS, 69, 82, null);
Arrays.fill(SYMBOLS, 115, SYMBOLS.length, null);
}

BufferedImage img = new BufferedImage(IMG_WIDTH, IMG_HEIGHT, BufferedImage.TYPE_INT_RGB);
Expand Down

0 comments on commit 37ee425

Please sign in to comment.