From 7ea100b3cabb01f7e327e7a109d56c5b0922ebd0 Mon Sep 17 00:00:00 2001 From: Mikael Andersen <42532991+infosuitemka@users.noreply.github.com> Date: Fri, 8 May 2020 11:05:03 +0200 Subject: [PATCH] Update InstalledFontCollection.java --- .../org/apache/fop/render/java2d/InstalledFontCollection.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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);