lazy font will set loaded to true after first attempt rather than keep trying if it fails
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@194413
13f79535-47bb-0310-9956-
ffa450edef68
public void stopRenderer(OutputStream stream)
throws IOException {
+ FontSetup.addToResources(this.pdfDoc, fontInfo);
pdfDoc.outputTrailer(stream);
}
this.pdfDoc.setIDReferences(idReferences);
this.renderPage(page);
- FontSetup.addToResources(this.pdfDoc, fontInfo);
+ //FontSetup.addToResources(this.pdfDoc, fontInfo);
// TODO: this needs to be implemented
renderRootExtensions(page);
private void load(){
if(! isMetricsLoaded){
+ isMetricsLoaded = true;
try{
FontReader reader = new FontReader(metricsFileName);
reader.useKerning(useKerning);
if(realFont instanceof FontDescriptor){
realFontDescriptor = (FontDescriptor) realFont;
}
- isMetricsLoaded = true;
// System.out.println("Metrics " + metricsFileName + " loaded.");
} catch (Exception ex) {
MessageHandler.error("Failed to read font metrics file "