1 51 package org.apache.fop.pdf; 52 53 62 public class PDFFontType3 extends PDFFontNonBase14 { 63 64 67 protected PDFRectangle fontBBox; 68 69 72 protected PDFArray fontMatrix; 73 74 77 protected PDFCharProcs charProcs; 78 79 82 protected PDFResources resources; 83 84 94 public PDFFontType3(int number, String fontname, byte subtype, 95 String basefont, 96 Object encoding ) { 97 98 99 super(number, fontname, subtype, basefont, encoding ); 100 101 this.fontBBox = null; 102 this.fontMatrix = null; 103 this.charProcs = null; 104 } 105 106 119 public PDFFontType3(int number, String fontname, byte subtype, 120 String basefont, 121 Object encoding , 122 PDFRectangle fontBBox, PDFArray fontMatrix, 123 PDFCharProcs charProcs) { 124 125 126 super(number, fontname, subtype, basefont, encoding ); 127 128 this.fontBBox = fontBBox; 129 this.fontMatrix = fontMatrix; 130 this.charProcs = charProcs; 131 } 132 133 138 public void setFontBBox(PDFRectangle bbox) { 139 this.fontBBox = bbox; 140 } 141 142 147 public void setFontMatrix(PDFArray matrix) { 148 this.fontMatrix = matrix; 149 } 150 151 157 public void setCharProcs(PDFCharProcs chars) { 158 this.charProcs = chars; 159 } 160 161 168 protected void fillInPDF(StringBuffer p) { 169 if (fontBBox != null) { 170 p.append("\n/FontBBox "); 171 p.append(fontBBox.toPDF()); 172 } 173 if (fontMatrix != null) { 174 p.append("\n/FontMatrix "); 175 p.append(fontMatrix.toPDF()); 176 } 177 if (charProcs != null) { 178 p.append("\n/CharProcs "); 179 p.append(charProcs.referencePDF()); 180 } 181 } 182 183 } 184 | Popular Tags |