1 51 package org.apache.fop.pdf; 52 53 55 60 public class PDFCIDFontDescriptor extends PDFFontDescriptor { 61 62 protected String lang; 63 protected PDFStream cidSet; 64 65 77 public PDFCIDFontDescriptor(int number, String basefont, int[] fontBBox, 78 int capHeight, int flags, int italicAngle, 79 int stemV, String lang) { 80 81 super(number, basefont, fontBBox[3], fontBBox[1], capHeight, flags, 82 new PDFRectangle(fontBBox), italicAngle, stemV); 83 84 this.lang = lang; 85 } 86 87 public void setCIDSet(PDFStream cidSet) { 88 this.cidSet = cidSet; 89 } 90 91 protected void fillInPDF(StringBuffer p) { 92 p.append("\n/MissingWidth 500\n"); 93 if (lang != null) { 94 p.append("\n/Lang /"); 95 p.append(lang); 96 } 97 if (cidSet != null) { 98 p.append("\n/CIDSet /"); 99 this.cidSet.referencePDF(); 100 } 101 } 102 103 } 104 | Popular Tags |