158159160161162163164165166167168
/**entry point when using generic renderer*/ public TrueType(String substituteFont) { glyphs=new TTGlyphs(); fontsLoaded=new HashMap(); init(null);
171172173174175176177178179180181
} /**get handles onto Reader so we can access the file*/ public TrueType(PdfObjectReader current_pdf_file,String substituteFont) { glyphs=new TTGlyphs(); init(current_pdf_file); this.substituteFont=substituteFont; }
8687888990919293949596
String typeSpecificTable="CFF "; if(fileType.equals("ttf")){ //read the data into our T1/t1c object so we can then parse glyphs=new TTGlyphs(); pdfFont=new TrueType(rawFontData,glyphs); typeSpecificTable="glyf"; }else{ /**
4950515253545556575859
public CIDFontType2(PdfObjectReader currentPdfFile, String substituteFontFile) { isCIDFont=true; TTstreamisCID=true; glyphs=new TTGlyphs(); init(currentPdfFile); this.substituteFontFile=substituteFontFile;
63646566676869707172
public CIDFontType2(PdfObjectReader currentPdfFile,boolean ttflag) { isCIDFont=true; TTstreamisCID=ttflag; glyphs=new TTGlyphs(); init(currentPdfFile); }