iTextSharp.text.pdf.CFFFontSubset.CreateFDSelect C# (CSharp) Method

CreateFDSelect() protected method

protected CreateFDSelect ( OffsetItem fdselectRef, int nglyphs ) : void
fdselectRef OffsetItem
nglyphs int
return void
        protected void CreateFDSelect(OffsetItem fdselectRef,int nglyphs)
        {
            OutputList.Add(new MarkerItem(fdselectRef));
            OutputList.Add(new UInt8Item((char)3)); // format identifier
            OutputList.Add(new UInt16Item((char)1)); // nRanges

            OutputList.Add(new UInt16Item((char)0)); // Range[0].firstGlyph
            OutputList.Add(new UInt8Item((char)0)); // Range[0].fd

            OutputList.Add(new UInt16Item((char)nglyphs)); // sentinel
        }