else stringsIndexOffSize = 4; OutputList.addLast(new UInt16Item((char)((stringOffsets.length-1)+3))); // count OutputList.addLast(new UInt8Item((char)stringsIndexOffSize)); // offSize for (int i=0; i<stringOffsets.length; i++)
l.addLast(new UInt16Item((char)1)); // count l.addLast(new UInt8Item((char)1)); // offSize l.addLast(new UInt8Item((char)1)); // first offset l.addLast(new UInt16Item((char)1)); // count l.addLast(new UInt8Item((char)2)); // offSize l.addLast(new UInt16Item((char)1)); // first offset OffsetItem topdictIndex1Ref = new IndexOffsetItem(2); l.addLast(topdictIndex1Ref); l.addLast(new UInt16Item((char)((stringOffsets.length-1)+3))); // count l.addLast(new UInt8Item((char)stringsIndexOffSize)); // offSize for (int i=0; i<stringOffsets.length; i++) l.addLast(new UInt16Item((char)1)); // nRanges l.addLast(new UInt16Item((char)0)); // Range[0].firstGlyph l.addLast(new UInt8Item((char)0)); // Range[0].fd l.addLast(new UInt16Item((char)nglyphs)); // sentinel l.addLast(new UInt16Item((char)1)); // first glyph in range (ignore .notdef) l.addLast(new UInt16Item((char)(nglyphs-1))); // nLeft l.addLast(new UInt16Item((char)1)); l.addLast(new UInt8Item((char)1)); // offSize l.addLast(new UInt8Item((char)1)); // first offset
l.addLast(new UInt16Item((char)1)); // count l.addLast(new UInt8Item((char)1)); // offSize l.addLast(new UInt8Item((char)1)); // first offset l.addLast(new UInt16Item((char)1)); // count l.addLast(new UInt8Item((char)2)); // offSize l.addLast(new UInt16Item((char)1)); // first offset OffsetItem topdictIndex1Ref = new IndexOffsetItem(2); l.addLast(topdictIndex1Ref); l.addLast(new UInt16Item((char)((stringOffsets.length-1)+3))); // count l.addLast(new UInt8Item((char)stringsIndexOffSize)); // offSize for (int i=0; i<stringOffsets.length; i++) l.addLast(new UInt16Item((char)1)); // nRanges l.addLast(new UInt16Item((char)0)); // Range[0].firstGlyph l.addLast(new UInt8Item((char)0)); // Range[0].fd l.addLast(new UInt16Item((char)nglyphs)); // sentinel l.addLast(new UInt16Item((char)1)); // first glyph in range (ignore .notdef) l.addLast(new UInt16Item((char)(nglyphs-1))); // nLeft l.addLast(new UInt16Item((char)1)); l.addLast(new UInt8Item((char)1)); // offSize l.addLast(new UInt8Item((char)1)); // first offset
l.addLast(new UInt16Item((char)1)); // count l.addLast(new UInt8Item((char)1)); // offSize l.addLast(new UInt8Item((char)1)); // first offset l.addLast(new UInt16Item((char)1)); // count l.addLast(new UInt8Item((char)2)); // offSize l.addLast(new UInt16Item((char)1)); // first offset OffsetItem topdictIndex1Ref = new IndexOffsetItem(2); l.addLast(topdictIndex1Ref); l.addLast(new UInt16Item((char)((stringOffsets.length-1)+3))); // count l.addLast(new UInt8Item((char)stringsIndexOffSize)); // offSize for (int i=0; i<stringOffsets.length; i++) l.addLast(new UInt16Item((char)1)); // nRanges l.addLast(new UInt16Item((char)0)); // Range[0].firstGlyph l.addLast(new UInt8Item((char)0)); // Range[0].fd l.addLast(new UInt16Item((char)nglyphs)); // sentinel l.addLast(new UInt16Item((char)1)); // first glyph in range (ignore .notdef) l.addLast(new UInt16Item((char)(nglyphs-1))); // nLeft l.addLast(new UInt16Item((char)1)); l.addLast(new UInt8Item((char)1)); // offSize l.addLast(new UInt8Item((char)1)); // first offset
else stringsIndexOffSize = 4; OutputList.addLast(new UInt16Item((char)((stringOffsets.length-1)+3))); // count OutputList.addLast(new UInt8Item((char)stringsIndexOffSize)); // offSize for (int i=0; i<stringOffsets.length; i++)
else stringsIndexOffSize = 4; OutputList.addLast(new UInt16Item((char)((stringOffsets.length-1)+3))); // count OutputList.addLast(new UInt8Item((char)stringsIndexOffSize)); // offSize for (int i=0; i<stringOffsets.length; i++)
OutputList.addLast(new UInt16Item((char)Count)); // count break; case 2: OutputList.addLast(new UInt16Item((char)First)); // first offset break; case 3:
OutputList.addLast(new UInt16Item((char)Count)); // count break; case 2: OutputList.addLast(new UInt16Item((char)First)); // first offset break; case 3:
OutputList.addLast(new UInt16Item((char)Count)); // count break; case 2: OutputList.addLast(new UInt16Item((char)First)); // first offset break; case 3:
/** * Function creates new FDSelect for non-CID fonts. * The FDSelect built uses a single range for all glyphs * @param fdselectRef OffsetItem for the FDSelect * @param nglyphs the number of glyphs in the font */ protected void CreateFDSelect(OffsetItem fdselectRef,int nglyphs) { OutputList.addLast(new MarkerItem(fdselectRef)); OutputList.addLast(new UInt8Item((char)3)); // format identifier OutputList.addLast(new UInt16Item((char)1)); // nRanges OutputList.addLast(new UInt16Item((char)0)); // Range[0].firstGlyph OutputList.addLast(new UInt8Item((char)0)); // Range[0].fd OutputList.addLast(new UInt16Item((char)nglyphs)); // sentinel }
/** * Function creates new FDSelect for non-CID fonts. * The FDSelect built uses a single range for all glyphs * @param fdselectRef OffsetItem for the FDSelect * @param nglyphs the number of glyphs in the font */ protected void CreateFDSelect(OffsetItem fdselectRef,int nglyphs) { OutputList.addLast(new MarkerItem(fdselectRef)); OutputList.addLast(new UInt8Item((char)3)); // format identifier OutputList.addLast(new UInt16Item((char)1)); // nRanges OutputList.addLast(new UInt16Item((char)0)); // Range[0].firstGlyph OutputList.addLast(new UInt8Item((char)0)); // Range[0].fd OutputList.addLast(new UInt16Item((char)nglyphs)); // sentinel }
/** * Function creates new CharSet for non-CID fonts. * The CharSet built uses a single range for all glyphs * @param charsetRef OffsetItem for the CharSet * @param nglyphs the number of glyphs in the font */ protected void CreateCharset(OffsetItem charsetRef,int nglyphs) { OutputList.addLast(new MarkerItem(charsetRef)); OutputList.addLast(new UInt8Item((char)2)); // format identifier OutputList.addLast(new UInt16Item((char)1)); // first glyph in range (ignore .notdef) OutputList.addLast(new UInt16Item((char)(nglyphs-1))); // nLeft }
/** * Function creates new CharSet for non-CID fonts. * The CharSet built uses a single range for all glyphs * @param charsetRef OffsetItem for the CharSet * @param nglyphs the number of glyphs in the font */ protected void CreateCharset(OffsetItem charsetRef,int nglyphs) { OutputList.addLast(new MarkerItem(charsetRef)); OutputList.addLast(new UInt8Item((char)2)); // format identifier OutputList.addLast(new UInt16Item((char)1)); // first glyph in range (ignore .notdef) OutputList.addLast(new UInt16Item((char)(nglyphs-1))); // nLeft }
/** * Function creates new FDSelect for non-CID fonts. * The FDSelect built uses a single range for all glyphs * @param fdselectRef OffsetItem for the FDSelect * @param nglyphs the number of glyphs in the font */ protected void CreateFDSelect(OffsetItem fdselectRef,int nglyphs) { OutputList.addLast(new MarkerItem(fdselectRef)); OutputList.addLast(new UInt8Item((char)3)); // format identifier OutputList.addLast(new UInt16Item((char)1)); // nRanges OutputList.addLast(new UInt16Item((char)0)); // Range[0].firstGlyph OutputList.addLast(new UInt8Item((char)0)); // Range[0].fd OutputList.addLast(new UInt16Item((char)nglyphs)); // sentinel }
/** * Function creates new CharSet for non-CID fonts. * The CharSet built uses a single range for all glyphs * @param charsetRef OffsetItem for the CharSet * @param nglyphs the number of glyphs in the font */ protected void CreateCharset(OffsetItem charsetRef,int nglyphs) { OutputList.addLast(new MarkerItem(charsetRef)); OutputList.addLast(new UInt8Item((char)2)); // format identifier OutputList.addLast(new UInt16Item((char)1)); // first glyph in range (ignore .notdef) OutputList.addLast(new UInt16Item((char)(nglyphs-1))); // nLeft }