diff --git a/openpdf/src/main/java/com/lowagie/text/pdf/LayoutProcessor.java b/openpdf/src/main/java/com/lowagie/text/pdf/LayoutProcessor.java index 7b7d90240..d65091169 100644 --- a/openpdf/src/main/java/com/lowagie/text/pdf/LayoutProcessor.java +++ b/openpdf/src/main/java/com/lowagie/text/pdf/LayoutProcessor.java @@ -270,6 +270,8 @@ public static boolean supportsFont(BaseFont baseFont) { /** * Loads the AWT font needed for layout + *

+ * If baseFont is not instanceof TrueTypeFontUnicode *no* font is loaded. * * @param baseFont OpenPdf base font * @param filename of the font file @@ -279,7 +281,9 @@ public static void loadFont(BaseFont baseFont, String filename) { if (!enabled || awtFontMap.get(baseFont) != null) { return; } - + if (!(baseFont instanceof TrueTypeFontUnicode)) { + return; + } java.awt.Font awtFont; InputStream inputStream = null; try {