1 51 package org.apache.fop.pdf; 52 53 58 public class PDFFontType0 extends PDFFontNonBase14 { 59 60 63 protected PDFCIDFont descendantFonts; 64 65 protected PDFCMap cmap; 66 67 77 public PDFFontType0(int number, String fontname, byte subtype, 78 String basefont, 79 Object encoding ) { 80 81 82 super(number, fontname, subtype, basefont, encoding ); 83 84 85 this.descendantFonts = null; 86 cmap = null; 87 } 88 89 100 public PDFFontType0(int number, String fontname, byte subtype, 101 String basefont, 102 Object encoding , 103 PDFCIDFont descendantFonts) { 104 105 106 super(number, fontname, subtype, basefont, encoding ); 107 108 109 this.descendantFonts = descendantFonts; 110 } 111 112 117 public void setDescendantFonts(PDFCIDFont descendantFonts) { 118 this.descendantFonts = descendantFonts; 119 } 120 121 public void setCMAP(PDFCMap cmap) { 122 this.cmap = cmap; 123 } 124 125 128 protected void fillInPDF(StringBuffer p) { 129 if (descendantFonts != null) { 130 p.append("\n/DescendantFonts [ " 131 + this.descendantFonts.referencePDF() + " ] "); 132 } 133 if (cmap != null) { 134 p.append("\n/ToUnicode " + cmap.referencePDF()); 135 } 136 } 137 138 } 139 | Popular Tags |