示例#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);
        }
示例#2
0
        public static CFFCharset Read(BinaryReaderFont reader, int count)
        {
            CFFCharset charset = null;
            byte       format  = reader.PeekByte();

            switch (format)
            {
            case 0:
                charset = CFFCharset0.Read(reader);
                break;

            case 1:
                charset = CFFCharset1.Read(reader, count);
                break;

            case 2:
                charset = CFFCharset2.Read(reader, count);
                break;
            }
            return(charset);
        }