8078382: Wrong glyph is displayed for a derived font

Reviewed-by: prr, serb
This commit is contained in:
Andrew Brygin 2016-06-02 15:36:15 +03:00
parent e110eecba2
commit 09db90e3d1

View File

@ -335,9 +335,9 @@ public class FontFamily {
case Font.BOLD|Font.ITALIC:
if (bolditalic != null) {
return bolditalic;
} else if (italic != null && italic.canDoStyle(style)) {
return italic;
} else if (bold != null && bold.canDoStyle(style)) {
return bold;
} else if (italic != null && italic.canDoStyle(style)) {
return italic;
} else if (plain != null && plain.canDoStyle(style)) {
return plain;