Pārlūkot izejas kodu

Bugzilla#52499: non embeddable TTF fonts -- throw exception if trying to embed

Submitted by: Luis Bernardo


git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@1234761 13f79535-47bb-0310-9956-ffa450edef68
tags/fop-1_1rc1old
Mehdi Houshmand pirms 12 gadiem
vecāks
revīzija
cfd456f554

+ 7
- 2
src/java/org/apache/fop/fonts/truetype/TTFFontLoader.java Parādīt failu

@@ -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);
}
}
}


Notiek ielāde…
Atcelt
Saglabāt