--- a/jdk/src/java.desktop/share/classes/sun/font/FontFamily.java Thu Jun 02 15:20:31 2016 +0530
+++ b/jdk/src/java.desktop/share/classes/sun/font/FontFamily.java Thu Jun 02 15:36:15 2016 +0300
@@ -335,10 +335,10 @@
case Font.BOLD|Font.ITALIC:
if (bolditalic != null) {
return bolditalic;
+ } else if (bold != null && bold.canDoStyle(style)) {
+ return bold;
} else if (italic != null && italic.canDoStyle(style)) {
return italic;
- } else if (bold != null && bold.canDoStyle(style)) {
- return italic;
} else if (plain != null && plain.canDoStyle(style)) {
return plain;
} else {