Example #1
0
        public static new CFFCharset1 Read(BinaryReaderFont reader, int count)
        {
            CFFCharset1 value = new CFFCharset1 {
                format = reader.ReadByte()
            };

            value.Range1 = CFFRange1.ReadArray(reader, count);
            return(value);
        }
Example #2
0
        public static CFFRange1[] ReadArray(BinaryReaderFont reader, int count)
        {
            List <CFFRange1> list = new List <CFFRange1>();

            for (int i = 1; i < count; i++)
            {
                CFFRange1 item = Read(reader);
                list.Add(item);
                i += item.nLeft + 1;
            }
            return(list.ToArray());
        }