--- old/src/java.desktop/share/classes/sun/awt/FontDescriptor.java 2020-07-11 17:35:34.780000000 +0900 +++ new/src/java.desktop/share/classes/sun/awt/FontDescriptor.java 2020-07-11 17:35:34.700000000 +0900 @@ -1,5 +1,5 @@ /* - * Copyright (c) 1996, 2017, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 1996, 2020, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it @@ -42,14 +42,21 @@ public CharsetEncoder encoder; String charsetName; private int[] exclusionRanges; + private final boolean defaultFont; public FontDescriptor(String nativeName, CharsetEncoder encoder, - int[] exclusionRanges){ + int[] exclusionRanges) { + this(nativeName, encoder, exclusionRanges, false); + } + + public FontDescriptor(String nativeName, CharsetEncoder encoder, + int[] exclusionRanges, boolean defaultFont) { this.nativeName = nativeName; this.encoder = encoder; this.exclusionRanges = exclusionRanges; this.useUnicode = false; + this.defaultFont = defaultFont; Charset cs = encoder.charset(); // The following looks odd but its the only public way to get the // historical name if one exists and the canonical name otherwise. @@ -123,4 +130,8 @@ "UnicodeBig")); isLE = !"UnicodeBig".equals(enc); } + + public boolean isDefaultFont() { + return defaultFont; + } }