iTextSharp.text.pdf.TrueTypeFont.ReadFormat12 C# (CSharp) Метод

ReadFormat12() приватный Метод

private ReadFormat12 ( ) : int[]>.Dictionary
Результат int[]>.Dictionary
        internal Dictionary<int, int[]> ReadFormat12()
        {
            Dictionary<int,int[]> h = new Dictionary<int,int[]>();
            rf.SkipBytes(2);
            int table_lenght = rf.ReadInt();
            rf.SkipBytes(4);
            int nGroups = rf.ReadInt();
            for (int k = 0; k < nGroups; k++) {
                int startCharCode = rf.ReadInt();
                int endCharCode = rf.ReadInt();
                int startGlyphID = rf.ReadInt();
                for (int i = startCharCode; i <= endCharCode; i++) {
                    int[] r = new int[2];
                    r[0] = startGlyphID;
                    r[1] = GetGlyphWidth(r[0]);
                    h[i] = r;
                    startGlyphID++;
                }
            }
            return h;
        }