Submitted by: Luis Bernardo git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@1234761 13f79535-47bb-0310-9956-ffa450edef68tags/fop-1_1rc1old
@@ -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); | |||
} | |||
} | |||
} | |||