예제 #1
0
        /// <summary>The information in the maps of the table 'cmap' is coded in several formats.</summary>
        /// <remarks>
        /// The information in the maps of the table 'cmap' is coded in several formats.
        /// Format 0 is the Apple standard character to glyph index mapping table.
        /// </remarks>
        /// <returns>a <c>HashMap</c> representing this map</returns>
        private IDictionary <int, int[]> ReadFormat0()
        {
            IDictionary <int, int[]> h = new LinkedDictionary <int, int[]>();

            raf.SkipBytes(4);
            for (int k = 0; k < 256; ++k)
            {
                int[] r = new int[2];
                r[0] = raf.ReadUnsignedByte();
                r[1] = GetGlyphWidth(r[0]);
                h.Put(k, r);
            }
            return(h);
        }