diff --git a/fop-core/src/main/java/org/apache/fop/render/java2d/InstalledFontCollection.java b/fop-core/src/main/java/org/apache/fop/render/java2d/InstalledFontCollection.java index 14ce695681f..65ce9fdf2d3 100644 --- a/fop-core/src/main/java/org/apache/fop/render/java2d/InstalledFontCollection.java +++ b/fop-core/src/main/java/org/apache/fop/render/java2d/InstalledFontCollection.java @@ -91,7 +91,7 @@ public int setup(int start, FontInfo fontInfo) { + ", Style: " + f.getStyle()); } - String searchName = FontUtil.stripWhiteSpace(f.getName()).toLowerCase(); + String searchName = FontUtil.stripWhiteSpace(f.getFontName(Locale.ENGLISH)).toLowerCase(); String guessedStyle = FontUtil.guessStyle(searchName); int guessedWeight = FontUtil.guessWeight(searchName);