diff options
Diffstat (limited to 'src/java/org/apache')
-rw-r--r-- | src/java/org/apache/fop/fonts/truetype/TTFFontLoader.java | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/src/java/org/apache/fop/fonts/truetype/TTFFontLoader.java b/src/java/org/apache/fop/fonts/truetype/TTFFontLoader.java index dc2bec352..d1a55dd20 100644 --- a/src/java/org/apache/fop/fonts/truetype/TTFFontLoader.java +++ b/src/java/org/apache/fop/fonts/truetype/TTFFontLoader.java @@ -169,8 +169,13 @@ public class TTFFontLoader extends FontLoader { if (useKerning) { copyKerning(ttf, isCid); } - if (this.embedded && ttf.isEmbeddable()) { - returnFont.setEmbedFileName(this.fontFileURI); + if (this.embedded) { + if (ttf.isEmbeddable()) { + returnFont.setEmbedFileName(this.fontFileURI); + } else { + String msg = "The font " + this.fontFileURI + " is not embedabble."; + throw new RuntimeException(msg); + } } } |