Exemplo n.º 1
0
        public override CharToGlyphTable CreateCharToGlyphTable()
        {
            CharToGlyphTable table = new CharToGlyphTable();

            for (int i = 0; i < entryCount; i++)
            {
                table.Add(i + firstCode, glyphIdArray[i]);
            }
            return(table);
        }
Exemplo n.º 2
0
        public override CharToGlyphTable CreateCharToGlyphTable()
        {
            CharToGlyphTable table = new CharToGlyphTable();

            for (int i = 0; i < glyphIdArray.Length; i++)
            {
                table.Add(i, glyphIdArray[i]);
            }
            return(table);
        }
Exemplo n.º 3
0
        public override CharToGlyphTable CreateCharToGlyphTable()
        {
            CharToGlyphTable table = new CharToGlyphTable();
            int charCode           = (int)startCharCode;

            for (int i = 0; i < numChars; i++)
            {
                table.Add(charCode + i, glyphs[i]);
            }
            return(table);
        }
Exemplo n.º 4
0
        public override CharToGlyphTable CreateCharToGlyphTable()
        {
            CharToGlyphTable table = new CharToGlyphTable();

            for (int i = 0; i < numGroups; i++)
            {
                ConstantMapGroup glyph = glyphs[i];
                ushort           id    = (ushort)glyph.glyphID;
                int endCharCode        = (int)glyph.endCharCode;
                for (int j = (int)glyph.startCharCode; j <= endCharCode; j++)
                {
                    table.Add(j, id);
                }
            }
            return(table);
        }
Exemplo n.º 5
0
        public override CharToGlyphTable CreateCharToGlyphTable()
        {
            CharToGlyphTable table = new CharToGlyphTable();

            for (int i = 0; i < numGroups; i++)
            {
                SequentialMapGroup group   = groups[i];
                ushort             glyphId = (ushort)group.startGlyphID;
                int endCharCode            = (int)group.endCharCode;
                for (int n = (int)group.startCharCode; n <= endCharCode; n++)
                {
                    table.Add(n, glyphId++);
                }
            }
            return(table);
        }
Exemplo n.º 6
0
        public override CharToGlyphTable CreateCharToGlyphTable()
        {
            CharToGlyphTable table = new CharToGlyphTable();

            return(table);
        }