- Timestamp:
- 08/23/09 13:26:07 (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/docx4j/src/main/java/org/docx4j/fonts/PhysicalFont.java
r712 r876 6 6 import org.apache.fop.fonts.EmbedFontInfo; 7 7 import org.apache.log4j.Logger; 8 import org.docx4j.convert.out.pdf.viaXSLFO.Conversion;9 8 10 9 /** … … 31 30 PhysicalFont(String name, EmbedFontInfo embedFontInfo) { 32 31 33 // Sanity check 34 if (embedFontInfo.getPostScriptName()==null) { 35 log.error("Not set!"); 36 //log.error(((org.apache.fop.fonts.FontTriplet)fontInfo.getFontTriplets().get(0)).getName()); 32 try { 33 // Sanity check 34 if (embedFontInfo.getPostScriptName()==null) { 35 log.error("Not set!"); 36 //log.error(((org.apache.fop.fonts.FontTriplet)fontInfo.getFontTriplets().get(0)).getName()); 37 } 38 } catch (Exception e1) { 39 // NB getPanose() only exists in our patched FOP 40 if (!loggedWarningAlready) { 41 log.warn("Not using patched FOP; getPostScriptName() method missing."); 42 loggedWarningAlready = true; 43 } 37 44 } 38 45 … … 44 51 45 52 // setName(fontInfo.getPostScriptName()); 46 setEmbeddedFile(embedFontInfo.getEmbedFile()); 47 setPanose(embedFontInfo.getPanose()); 53 54 setEmbeddedFile(embedFontInfo.getEmbedFile()); 55 try { 56 setPanose(embedFontInfo.getPanose()); 57 } catch (Exception e) { 58 // NB getPanose() only exists in our patched FOP 59 if (!loggedWarningAlready) { 60 log.warn("Not using patched FOP; getPanose() method missing."); 61 loggedWarningAlready = true; 62 } 63 } 48 64 } 65 66 private static boolean loggedWarningAlready = false; 49 67 50 68 // postscript name eg … … 81 99 } 82 100 83 org. apache.fop.fonts.Panose panose;84 public org. apache.fop.fonts.Panose getPanose() {101 org.foray.font.format.Panose panose; 102 public org.foray.font.format.Panose getPanose() { 85 103 return panose; 86 104 } 87 public void setPanose(org. apache.fop.fonts.Panose panose) {105 public void setPanose(org.foray.font.format.Panose panose) { 88 106 this.panose = panose; 89 107 }
Note: See TracChangeset
for help on using the changeset viewer.
